From 0d0465854443639398333d40213cfc7583c3c991 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 27 Dec 2010 14:03:45 +0000 Subject: [PATCH] When fetching a local file of type data, examine the extension to determine mime type. svn path=/trunk/netsurf/; revision=11123 --- riscos/filetype.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/riscos/filetype.c b/riscos/filetype.c index 39708cf3a..2c8ac76d9 100644 --- a/riscos/filetype.c +++ b/riscos/filetype.c @@ -106,9 +106,9 @@ const char *fetch_filetype(const char *unix_path) return (const char *)type_buf; } - /* If filetype is text and the file has an extension, try to map the - * extension to a filetype via the MimeMap file. */ - if (file_type == osfile_TYPE_TEXT) { + /* If filetype is text or data, and the file has an extension, try to + * map the extension to a filetype via the MimeMap file. */ + if (file_type == osfile_TYPE_TEXT || file_type == osfile_TYPE_DATA) { slash = strrchr(path, '/'); if (slash) { error = xmimemaptranslate_extension_to_filetype(