From ce2a0f988e01036532a277fd8dd25f33a51c1384 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Mon, 14 Feb 2011 16:07:32 +0000 Subject: [PATCH] Add '.png' to the list of recognized file extenstions in get_content_type() --- cgisimple.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cgisimple.c b/cgisimple.c index e9778e5d..96619220 100644 --- a/cgisimple.c +++ b/cgisimple.c @@ -1,4 +1,4 @@ -const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.103 2011/02/14 16:06:37 fabiankeil Exp $"; +const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.104 2011/02/14 16:07:11 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"}, + {".png", "image/png"}, }; for (i = 0; i < SZ(content_types); i++) -- 2.49.0