send 400 error when the streaming url is invalid instead of the playlist.
This commit is contained in:
parent
22b89fd780
commit
2412ac4643
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue