In get_content_type(), also recognize '.jpeg' as JPEG extension
authorFabian Keil <fk@fabiankeil.de>
Mon, 14 Feb 2011 16:07:52 +0000 (16:07 +0000)
committerFabian Keil <fk@fabiankeil.de>
Mon, 14 Feb 2011 16:07:52 +0000 (16:07 +0000)
cgisimple.c

index 9661922..81fab06 100644 (file)
@@ -1,4 +1,4 @@
-const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.104 2011/02/14 16:07:11 fabiankeil Exp $";
+const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.105 2011/02/14 16:07:32 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/cgisimple.c,v $
@@ -684,6 +684,7 @@ static const char *get_content_type(const char *filename)
    {
       {".css",  "text/css"},
       {".jpg",  "image/jpeg"},
+      {".jpeg", "image/jpeg"},
       {".png",  "image/png"},
    };