From 2412ac4643b4dd163a2739b10711c7b81104a1f6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?John=20T=C3=B6rnblom?= Date: Thu, 6 Jan 2011 17:53:13 +0100 Subject: [PATCH] send 400 error when the streaming url is invalid instead of the playlist. --- src/webui/webui.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webui/webui.c b/src/webui/webui.c index f9a93612e..c2060b923 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -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) { -- 2.47.2