From: David Kalnischkies Date: Mon, 17 Oct 2022 14:48:52 +0000 (+0200) Subject: Serve static html files with mimetype text/html X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3376c764c3015279ec1b687bb017292a12d2d82;p=thirdparty%2Ftvheadend.git Serve static html files with mimetype text/html --- diff --git a/src/webui/webui.c b/src/webui/webui.c index 8f5010a41..59025d8d9 100755 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -252,6 +252,8 @@ page_static_file(http_connection_t *hc, const char *_remain, void *opaque) postfix++; if(!strcmp(postfix, "js")) content = "text/javascript; charset=UTF-8"; + else if(!strcmp(postfix, "html")) + content = "text/html; charset=UTF-8"; else if(!strcmp(postfix, "css")) content = "text/css; charset=UTF-8"; else if(!strcmp(postfix, "git"))