summaryrefslogtreecommitdiff
path: root/content/mimesniff.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-03-19 22:29:23 +0000
committerVincent Sanders <vince@kyllikki.org>2017-03-19 22:29:23 +0000
commit0866314d9675c09b4b3d0db9e777f132b7c0aae7 (patch)
tree5ac6a4bc215129c885286e31ab49fc306cfe95d9 /content/mimesniff.h
parent93e2b4855ba5b16a507e75dc533500efcc91e065 (diff)
downloadnetsurf-0866314d9675c09b4b3d0db9e777f132b7c0aae7.tar.gz
netsurf-0866314d9675c09b4b3d0db9e777f132b7c0aae7.tar.bz2
reduce hlcache handle api usage in mimesniff
Diffstat (limited to 'content/mimesniff.h')
-rw-r--r--content/mimesniff.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/mimesniff.h b/content/mimesniff.h
index 474f7b87f..faecab865 100644
--- a/content/mimesniff.h
+++ b/content/mimesniff.h
@@ -37,7 +37,7 @@ struct llcache_handle;
* The implementation uses the sniffing algorithm described in
* http://mimesniff.spec.whatwg.org/
*
- * \param handle Source data handle to sniff
+ * \param content_type_header Source content type header
* \param data First data chunk, or NULL
* \param len Length of \a data, in bytes
* \param sniff_allowed Whether MIME type sniffing is allowed
@@ -48,7 +48,7 @@ struct llcache_handle;
* NSERROR_NOT_FOUND if sniffing is prohibited and no
* Content-Type header was found
*/
-nserror mimesniff_compute_effective_type(struct llcache_handle *handle,
+nserror mimesniff_compute_effective_type(const char *content_type_header,
const uint8_t *data, size_t len, bool sniff_allowed,
bool image_only, lwc_string **effective_type);