From 7733ece4724d164f31e3be337ed09022f97d1d0e Mon Sep 17 00:00:00 2001 From: Chris Young Date: Tue, 24 Nov 2015 20:35:18 +0000 Subject: 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. --- amiga/file.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'amiga/file.c') 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) { -- cgit v1.2.3