uhttpd: add manifest support
authorAdrian Panella <ianchi74@outlook.com>
Fri, 21 Jul 2017 19:17:36 +0000 (14:17 -0500)
committerJo-Philipp Wich <jo@mein.io>
Sat, 19 Aug 2017 12:51:21 +0000 (14:51 +0200)
Add "text/cache-manifest" mimetype support to enable the possibility of
using Application Cache.

Signed-off-by: Adrian Panella <ianchi74@outlook.com>
mimetypes.h

index 06514861975d1ac14f744473f3b709310c31aa60..1f5b92ff57e5d2cba132c4c0d87143faa8fadea0 100644 (file)
@@ -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 }
 };