summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2010-12-27 14:03:45 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2010-12-27 14:03:45 +0000
commit0d0465854443639398333d40213cfc7583c3c991 (patch)
tree24a32069e4671da1c1f350613545e0a9f7015e47 /riscos
parent841b458f7a17277bd2b8ab4e893506798a60f9fe (diff)
downloadnetsurf-0d0465854443639398333d40213cfc7583c3c991.tar.gz
netsurf-0d0465854443639398333d40213cfc7583c3c991.tar.bz2
When fetching a local file of type data, examine the extension to determine mime type.
svn path=/trunk/netsurf/; revision=11123
Diffstat (limited to 'riscos')
-rw-r--r--riscos/filetype.c6
1 files 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(