summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-03-12 22:28:43 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-03-12 22:28:43 +0000
commit155f50a48ceb2784841613fcf86afbffeeacf87a (patch)
tree2766b11d11b4f8d51f9b13dc70e0b7d1d55d3bfc
parent260fbf5fcc6a30fae3dd5abc80377f10369fffe8 (diff)
downloadnetsurf-155f50a48ceb2784841613fcf86afbffeeacf87a.tar.gz
netsurf-155f50a48ceb2784841613fcf86afbffeeacf87a.tar.bz2
Hacky mime mappings for RISC OS filetype extensions
svn path=/trunk/netsurf/; revision=11993
-rw-r--r--gtk/filetype.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/filetype.c b/gtk/filetype.c
index f89f2358c..7229d2037 100644
--- a/gtk/filetype.c
+++ b/gtk/filetype.c
@@ -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) {