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-Tag: v4.2.8~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=036b9cbab12ea9f76ea8ffd2d704163e5e43427c;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 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; }