From 155f50a48ceb2784841613fcf86afbffeeacf87a Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 12 Mar 2011 22:28:43 +0000 Subject: Hacky mime mappings for RISC OS filetype extensions svn path=/trunk/netsurf/; revision=11993 --- gtk/filetype.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gtk/filetype.c') 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) { -- cgit v1.2.3