]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
http/webui: return not found status when redirection is not possible, fixes #5342
authorJaroslav Kysela <perex@perex.cz>
Fri, 23 Nov 2018 13:00:31 +0000 (14:00 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 23 Nov 2018 13:00:42 +0000 (14:00 +0100)
src/webui/webui.c

index 5a57df9b0fcbd8c47fb7b2cbeacc26f2c70a6d0b..ac1e425b53e1e6e2b650c0c1de60abddb21f5f0e 100644 (file)
@@ -177,7 +177,7 @@ page_root(http_connection_t *hc, const char *remain, void *opaque)
 static int
 page_root2(http_connection_t *hc, const char *remain, void *opaque)
 {
-  if (!tvheadend_webroot) return 1;
+  if (!tvheadend_webroot) return HTTP_STATUS_NOT_FOUND;
   http_redirect(hc, "/", &hc->hc_req_args, 0);
   return 0;
 }