summaryrefslogtreecommitdiff
path: root/content/hlcache.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2021-03-25 23:31:37 +0000
committerVincent Sanders <vince@kyllikki.org>2021-03-25 23:36:41 +0000
commit5a2f69388c924dd0798e372f263af6f29cb44f10 (patch)
treed96da54a89989a7bb2b33cb0bc2dbcfd7a6f2535 /content/hlcache.c
parent537f131ee3617614cba46dae2d893d209c0a95e3 (diff)
downloadnetsurf-5a2f69388c924dd0798e372f263af6f29cb44f10.tar.gz
netsurf-5a2f69388c924dd0798e372f263af6f29cb44f10.tar.bz2
hoist the Referer header generation logic up to the low level cache
This removes the need for the fetchers to have any interaction with the Referer header. It has not been completely removed from the fetch interface as fetch.c:fetch_set_cookie() still uses it for unverifiable cookie decision logic. (There is an anchient todo here)
Diffstat (limited to 'content/hlcache.c')
-rw-r--r--content/hlcache.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/content/hlcache.c b/content/hlcache.c
index 2e15edd56..d860015a5 100644
--- a/content/hlcache.c
+++ b/content/hlcache.c
@@ -673,11 +673,15 @@ void hlcache_finalise(void)
}
/* See hlcache.h for documentation */
-nserror hlcache_handle_retrieve(nsurl *url, uint32_t flags,
- nsurl *referer, llcache_post_data *post,
- hlcache_handle_callback cb, void *pw,
- hlcache_child_context *child,
- content_type accepted_types, hlcache_handle **result)
+nserror
+hlcache_handle_retrieve(nsurl *url,
+ uint32_t flags,
+ nsurl *referer,
+ llcache_post_data *post,
+ hlcache_handle_callback cb, void *pw,
+ hlcache_child_context *child,
+ content_type accepted_types,
+ hlcache_handle **result)
{
hlcache_retrieval_ctx *ctx;
nserror error;