Browse Source

uhttpd: add manifest support

Add "text/cache-manifest" mimetype support to enable the possibility of
using Application Cache.

Signed-off-by: Adrian Panella <ianchi74@outlook.com>
Adrian Panella 6 years ago
parent
commit
3fd58e9b6d
1 changed files with 4 additions and 2 deletions
  1. 4 2
      mimetypes.h

+ 4 - 2
mimetypes.h

@@ -84,8 +84,10 @@ static const struct mimetype uh_mime_types[] = {
 	{ "cfg",     "text/plain" },
 	{ "conf",    "text/plain" },
 
-	{ "pac",		"application/x-ns-proxy-autoconfig" },
-	{ "wpad.dat",	"application/x-ns-proxy-autoconfig" },
+	{ "pac",      "application/x-ns-proxy-autoconfig" },
+	{ "wpad.dat", "application/x-ns-proxy-autoconfig" },
+	{ "appcache", "text/cache-manifest" },
+	{ "manifest", "text/cache-manifest" },
 
 	{ NULL, NULL }
 };