]> 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:01:42 +0000 (14:01 +0100)
src/webui/webui.c

index 6999cb4c2911f31259e6d923a2ed85686f9fe171..f8769f99d4a34215ac02bbea57fce370699bc618 100644 (file)
@@ -126,7 +126,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;
 }