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