mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-25 21:46:57 +03:00
[project @ 2004-06-02 21:00:10 by bursa]
Add some extensions. svn path=/import/netsurf/; revision=910
This commit is contained in:
parent
e18bc32952
commit
00be6366a7
@ -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";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user