diff options
author | Vincent Sanders <vince@kyllikki.org> | 2021-03-25 23:31:37 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2021-03-25 23:36:41 +0000 |
commit | 5a2f69388c924dd0798e372f263af6f29cb44f10 (patch) | |
tree | d96da54a89989a7bb2b33cb0bc2dbcfd7a6f2535 /content/fetchers/curl.c | |
parent | 537f131ee3617614cba46dae2d893d209c0a95e3 (diff) | |
download | netsurf-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/fetchers/curl.c')
-rw-r--r-- | content/fetchers/curl.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/content/fetchers/curl.c b/content/fetchers/curl.c index f9cafae69..d36f44c09 100644 --- a/content/fetchers/curl.c +++ b/content/fetchers/curl.c @@ -889,7 +889,6 @@ static CURLcode fetch_curl_set_options(struct curl_fetch_info *f) SETOPT(CURLOPT_WRITEDATA, f); SETOPT(CURLOPT_WRITEHEADER, f); SETOPT(CURLOPT_PROGRESSDATA, f); - SETOPT(CURLOPT_REFERER, fetch_get_referer_to_send(f->fetch_handle)); SETOPT(CURLOPT_HTTPHEADER, f->headers); if (f->post_urlenc) { SETOPT(CURLOPT_HTTPPOST, NULL); |