summaryrefslogtreecommitdiff
path: root/debug
diff options
context:
space:
mode:
Diffstat (limited to 'debug')
-rw-r--r--debug/filetyped.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/debug/filetyped.c b/debug/filetyped.c
index 997f407e3..b0aacc71b 100644
--- a/debug/filetyped.c
+++ b/debug/filetyped.c
@@ -25,6 +25,10 @@ const char *fetch_filetype(const char *unix_path)
return "image/jpeg";
if (3 < l && strcasecmp(unix_path + l - 4, "jpeg") == 0)
return "image/jpeg";
+ if (2 < l && strcasecmp(unix_path + l - 3, "gif") == 0)
+ return "image/gif";
+ if (2 < l && strcasecmp(unix_path + l - 3, "png") == 0)
+ return "image/png";
return "text/html";
}