send 400 error when the streaming url is invalid instead of the playlist.

This commit is contained in:
John Törnblom 2011-01-06 17:53:13 +01:00
parent 22b89fd780
commit 2412ac4643

View file

@ -393,8 +393,8 @@ http_stream(http_connection_t *hc, const char *remain, void *opaque)
hc->hc_keep_alive = 0;
if(remain == NULL) {
http_stream_playlist(hc, NULL);
return 0;
http_error(hc, HTTP_STATUS_BAD_REQUEST);
return HTTP_STATUS_BAD_REQUEST;
}
if(http_tokenize((char *)remain, components, 2, '/') != 2) {