summaryrefslogtreecommitdiff
path: root/gtk/filetype.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/filetype.c')
-rw-r--r--gtk/filetype.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/filetype.c b/gtk/filetype.c
index b172f5191..f89f2358c 100644
--- a/gtk/filetype.c
+++ b/gtk/filetype.c
@@ -155,11 +155,17 @@ const char *fetch_filetype(const char *unix_path)
const char *ptr;
char *lowerchar;
const char *type;
+ int l;
stat(unix_path, &statbuf);
if (S_ISDIR(statbuf.st_mode))
return "application/x-netsurf-directory";
+ l = strlen(unix_path);
+ if ((3 < l) && (strcasecmp(unix_path + l - 4, ",f79") == 0)) {
+ return "text/css";
+ }
+
if (strchr(unix_path, '.') == NULL) {
/* no extension anywhere! */
return "text/plain";