]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
send 400 error when the streaming url is invalid instead of the playlist.
authorJohn Törnblom <john.tornblom@gmail.com>
Thu, 6 Jan 2011 16:53:13 +0000 (17:53 +0100)
committerJohn Törnblom <john.tornblom@gmail.com>
Fri, 4 Feb 2011 14:58:10 +0000 (15:58 +0100)
src/webui/webui.c

index f9a93612e1835b47d3a8f694b56f8ff77da0584e..c2060b923a5c0b3b947b2797f92609de59cd464c 100644 (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) {