Hacky mime mappings for RISC OS filetype extensions

svn path=/trunk/netsurf/; revision=11993
This commit is contained in:
John Mark Bell 2011-03-12 22:28:43 +00:00
parent 260fbf5fcc
commit 155f50a48c
1 changed files with 6 additions and 0 deletions

View File

@ -162,8 +162,14 @@ const char *fetch_filetype(const char *unix_path)
return "application/x-netsurf-directory";
l = strlen(unix_path);
/* Hacky RISC OS compatibility */
if ((3 < l) && (strcasecmp(unix_path + l - 4, ",f79") == 0)) {
return "text/css";
} else if ((3 < l) && (strcasecmp(unix_path + l - 4, ",faf") == 0)) {
return "text/html";
} else if ((3 < l) && (strcasecmp(unix_path + l - 4, ",b60") == 0)) {
return "image/png";
}
if (strchr(unix_path, '.') == NULL) {