mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 12:36:51 +03:00
added .txt file type.
svn path=/trunk/netsurf/; revision=11811
This commit is contained in:
parent
d324c0397c
commit
4ee38c563a
@ -53,6 +53,8 @@ const char *fetch_filetype(const char *unix_path)
|
||||
return "image/jng";
|
||||
if (2 < l && strcasecmp(unix_path + l - 3, "svg") == 0)
|
||||
return "image/svg";
|
||||
if (2 < l && strcasecmp(unix_path + l - 3, "txt") == 0)
|
||||
return "text/plain";
|
||||
return "text/html";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user