]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Serve static html files with mimetype text/html
authorDavid Kalnischkies <david@kalnischkies.de>
Mon, 17 Oct 2022 14:48:52 +0000 (16:48 +0200)
committerFlole998 <Flole998@users.noreply.github.com>
Mon, 21 Nov 2022 01:33:44 +0000 (02:33 +0100)
src/webui/webui.c

index 8f5010a410486e36e71a2b1f4b72c2d0f3a7bf87..59025d8d9b3358de5c564ff5b679f3844e994779 100755 (executable)
@@ -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"))