]> code.citadel.org Git - citadel.git/commitdiff
* Add MIME types text/css and image/png
authorMichael Hampton <io_error@uncensored.citadel.org>
Sat, 5 Jan 2002 06:19:17 +0000 (06:19 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Sat, 5 Jan 2002 06:19:17 +0000 (06:19 +0000)
webcit/ChangeLog
webcit/webcit.c

index 37a12eb774a9cf10efe2c381efda657e96c7ee81..cc0786f2033c9989d07b9ac13a73ebf7881102f0 100644 (file)
@@ -1,4 +1,7 @@
 $Log$
+Revision 322.3  2002/01/05 06:19:17  error
+* Add MIME types text/css and image/png
+
 Revision 322.2  2002/01/03 22:32:38  ajc
 * templatized the "prompt for recipient" screen
 
@@ -704,3 +707,4 @@ 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 142455fde94efe646db227b7173993bc4cd5b1d7..530d60e6c2c64621fdc5bb2ea64327b49d07d293 100644 (file)
@@ -422,8 +422,12 @@ void output_static(char *what)
                        wprintf("Content-type: image/gif\n");
                else if (!strncasecmp(&what[strlen(what) - 4], ".txt", 4))
                        wprintf("Content-type: text/plain\n");
+               else if (!strncasecmp(&what[strlen(what) - 4], ".css", 4))
+                       wprintf("Content-type: text/css\n");
                else if (!strncasecmp(&what[strlen(what) - 4], ".jpg", 4))
                        wprintf("Content-type: image/jpeg\n");
+               else if (!strncasecmp(&what[strlen(what) - 4], ".png", 4))
+                       wprintf("Content-type: image/png\n");
                else if (!strncasecmp(&what[strlen(what) - 5], ".html", 5))
                        wprintf("Content-type: text/html\n");
                else