diff options
author | James Bursa <james@netsurf-browser.org> | 2004-06-02 21:00:10 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2004-06-02 21:00:10 +0000 |
commit | 00be6366a73b8b327d3f3c211af2268e74512617 (patch) | |
tree | 765eca4ae86d7c0d1e131e366a43cb8c1fbd5233 /debug/filetyped.c | |
parent | e18bc32952d3596497f3739f5b20ac39cca39f0a (diff) | |
download | netsurf-00be6366a73b8b327d3f3c211af2268e74512617.tar.gz netsurf-00be6366a73b8b327d3f3c211af2268e74512617.tar.bz2 |
[project @ 2004-06-02 21:00:10 by bursa]
Add some extensions.
svn path=/import/netsurf/; revision=910
Diffstat (limited to 'debug/filetyped.c')
-rw-r--r-- | debug/filetyped.c | 4 |
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"; } |