summaryrefslogtreecommitdiff
path: root/desktop/netsurf.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2011-09-04 06:28:09 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2011-09-04 06:28:09 +0000
commit6807fa854da64166e84efd0074b1e4dfeb5d8b17 (patch)
tree998672af3a94f2eac0434cc138efa151ebcd603b /desktop/netsurf.c
parent9ee4f6146e06f6d142cc98a2bc600a49b4a3ddc6 (diff)
downloadnetsurf-6807fa854da64166e84efd0074b1e4dfeb5d8b17.tar.gz
netsurf-6807fa854da64166e84efd0074b1e4dfeb5d8b17.tar.bz2
Sniff content types where appropriate.
We never sniff for CSS, nor for non-page artefacts (e.g. treeview icons) svn path=/trunk/netsurf/; revision=12707
Diffstat (limited to 'desktop/netsurf.c')
-rw-r--r--desktop/netsurf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/desktop/netsurf.c b/desktop/netsurf.c
index fe93818ea..639aa8fcc 100644
--- a/desktop/netsurf.c
+++ b/desktop/netsurf.c
@@ -35,6 +35,7 @@
#include "content/content_factory.h"
#include "content/fetch.h"
#include "content/hlcache.h"
+#include "content/mimesniff.h"
#include "content/urldb.h"
#include "css/css.h"
#include "image/image.h"
@@ -155,6 +156,10 @@ nserror netsurf_init(int *pargc,
if (error != NSERROR_OK)
return error;
+ error = mimesniff_init();
+ if (error != NSERROR_OK)
+ return error;
+
url_init();
setlocale(LC_ALL, "C");
@@ -209,6 +214,8 @@ void netsurf_exit(void)
LOG(("Closing fetches"));
fetch_quit();
+ mimesniff_fini();
+
/* Clean up after content handlers */
textplain_fini();
image_fini();