$Log$
+Revision 323.33 2002/05/11 15:35:07 error
+* webcit.c: add MIME types for WAP/WML
+
Revision 323.32 2002/05/10 15:29:58 ajc
* Hacked the address book view a little bit
1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
* webserver.c: warning fix
-
wprintf("Content-type: image/png\n");
else if (!strncasecmp(&what[strlen(what) - 5], ".html", 5))
wprintf("Content-type: text/html\n");
+ else if (!strncasecmp(&what[strlen(what) - 4], ".wml", 4))
+ wprintf("Content-type: text/vnd.wap.wml\n");
+ else if (!strncasecmp(&what[strlen(what) - 5], ".wmls", 5))
+ wprintf("Content-type: text/vnd.wap.wmlscript\n");
+ else if (!strncasecmp(&what[strlen(what) - 5], ".wmlc", 5))
+ wprintf("Content-type: application/vnd.wap.wmlc\n");
+ else if (!strncasecmp(&what[strlen(what) - 6], ".wmlsc", 6))
+ wprintf("Content-type: application/vnd.wap.wmlscriptc\n");
+ else if (!strncasecmp(&what[strlen(what) - 5], ".wbmp", 5))
+ wprintf("Content-type: image/vnd.wap.wbmp\n");
else
wprintf("Content-type: application/octet-stream\n");