From 00be6366a73b8b327d3f3c211af2268e74512617 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Wed, 2 Jun 2004 21:00:10 +0000 Subject: [project @ 2004-06-02 21:00:10 by bursa] Add some extensions. svn path=/import/netsurf/; revision=910 --- debug/filetyped.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'debug') 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"; } -- cgit v1.2.3