From: Jaroslav Kysela Date: Fri, 23 Nov 2018 13:00:31 +0000 (+0100) Subject: http/webui: return not found status when redirection is not possible, fixes #5342 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4512836a5149d02768e07a1770c7ba987d12f7b8;p=thirdparty%2Ftvheadend.git http/webui: return not found status when redirection is not possible, fixes #5342 --- diff --git a/src/webui/webui.c b/src/webui/webui.c index 6999cb4c2..f8769f99d 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -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; }