From 3e2e110a86f53b391fb2d6f20487e7510de4336c Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 8 Feb 2012 00:52:16 +0000 Subject: Bypass full type sniffer if only images are acceptable svn path=/trunk/netsurf/; revision=13436 --- content/mimesniff.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'content/mimesniff.h') diff --git a/content/mimesniff.h b/content/mimesniff.h index 331adc28c..bf3e493f3 100644 --- a/content/mimesniff.h +++ b/content/mimesniff.h @@ -38,6 +38,7 @@ struct llcache_handle; * \param data First data chunk, or NULL * \param len Length of \a data, in bytes * \param sniff_allowed Whether MIME type sniffing is allowed + * \param image_only Sniff image types only * \param effective_type Location to receive computed type * \return NSERROR_OK on success, * NSERROR_NEED_DATA iff \a data is NULL and data is needed @@ -46,7 +47,7 @@ struct llcache_handle; */ nserror mimesniff_compute_effective_type(struct llcache_handle *handle, const uint8_t *data, size_t len, bool sniff_allowed, - lwc_string **effective_type); + bool image_only, lwc_string **effective_type); nserror mimesniff_init(void); void mimesniff_fini(void); -- cgit v1.2.3