summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'gtk')
-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) {