summaryrefslogtreecommitdiff
path: root/amiga/file.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2015-11-24 20:35:18 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2015-11-24 20:35:18 +0000
commit7733ece4724d164f31e3be337ed09022f97d1d0e (patch)
tree2bb11019bce3435487dc31de9507ff13073c766a /amiga/file.c
parent709a23aa340c483a9c6e8f9213b098b1835a057a (diff)
downloadnetsurf-7733ece4724d164f31e3be337ed09022f97d1d0e.tar.gz
netsurf-7733ece4724d164f31e3be337ed09022f97d1d0e.tar.bz2
Remove the setting of mimetype in default tooltypes
NetSurf is a lot more liberal now in accepting files, so the mimetype guessing routines are sufficient without forcing CSS files to be recognised as text/css. The ability to add a tooltype to troublesome files remains.
Diffstat (limited to 'amiga/file.c')
-rw-r--r--amiga/file.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/amiga/file.c b/amiga/file.c
index ae9e3d059..8e81b9c28 100644
--- a/amiga/file.c
+++ b/amiga/file.c
@@ -117,17 +117,13 @@ static void ami_file_set_type(const char *path, lwc_string *mime_type)
content_type type = content_factory_type_from_mime_type(mime_type);
const char *default_type;
- switch(type)
- {
- case CONTENT_HTML:
- default_type = "html";
- break;
- case CONTENT_CSS:
- default_type = "css";
- break;
- default:
- default_type = NULL;
- break;
+ switch(type) {
+ case CONTENT_HTML:
+ default_type = "html";
+ break;
+ default:
+ default_type = NULL;
+ break;
}
if (default_type != NULL) {