]> code.citadel.org Git - citadel.git/commitdiff
* webcit.c: add MIME types for WAP/WML
authorMichael Hampton <io_error@uncensored.citadel.org>
Sat, 11 May 2002 15:35:07 +0000 (15:35 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Sat, 11 May 2002 15:35:07 +0000 (15:35 +0000)
webcit/ChangeLog
webcit/webcit.c

index 135157c501ea78d58d9d5dcda1e5c550b085836e..4ac9206d9eef2c0c01b314253cbf31e365b6c669 100644 (file)
@@ -1,4 +1,7 @@
 $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
 
@@ -812,4 +815,3 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
-
index 97dec65b0e112911829d39a246bae7c8324b0409..12d6d5f33af26158805f93c145d95ecc473ca8b7 100644 (file)
@@ -431,6 +431,16 @@ void output_static(char *what)
                        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");