summaryrefslogtreecommitdiff
path: root/debug/filetyped.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2004-03-27 00:54:03 +0000
committerJames Bursa <james@netsurf-browser.org>2004-03-27 00:54:03 +0000
commitb0fdba3f596edb61e8f976ae67ad02d641429525 (patch)
tree4a9285adf5f17b9f73c76d2f1558dc1e5e7c94a0 /debug/filetyped.c
parent48c8934431ef866055f3520ec9df4a1cf4d04ebc (diff)
downloadnetsurf-b0fdba3f596edb61e8f976ae67ad02d641429525.tar.gz
netsurf-b0fdba3f596edb61e8f976ae67ad02d641429525.tar.bz2
[project @ 2004-03-27 00:53:19 by bursa]
Add imagemap and jpeg to the debug build. svn path=/import/netsurf/; revision=675
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";
}