From 036b9cbab12ea9f76ea8ffd2d704163e5e43427c 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 5a57df9b0..ac1e425b5 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -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; } -- 2.47.2