From 4512836a5149d02768e07a1770c7ba987d12f7b8 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 23 Nov 2018 14:00:31 +0100 Subject: [PATCH] http/webui: return not found status when redirection is not possible, fixes #5342 --- src/webui/webui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.2