From 52d11ea17fffb62f755ee0060e4a6c72283894ad Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Mon, 14 Feb 2011 16:07:52 +0000 Subject: [PATCH] In get_content_type(), also recognize '.jpeg' as JPEG extension --- cgisimple.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cgisimple.c b/cgisimple.c index 96619220..81fab06f 100644 --- a/cgisimple.c +++ b/cgisimple.c @@ -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"}, }; -- 2.39.2