added .txt file type.

svn path=/trunk/netsurf/; revision=11811
This commit is contained in:
Ole Loots 2011-02-25 23:21:40 +00:00
parent d324c0397c
commit 4ee38c563a

View File

@ -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";
}