[project @ 2003-07-07 21:53:15 by bursa]

Fix header handling for reused connections.

svn path=/import/netsurf/; revision=209
This commit is contained in:
James Bursa 2003-07-07 21:53:15 +00:00
parent 1244e1069e
commit 1abf8018a9

View File

@ -272,6 +272,8 @@ void fetch_abort(struct fetch *f)
assert(code == CURLE_OK);
code = curl_easy_setopt(fetch->curl_handle, CURLOPT_WRITEDATA, fetch);
assert(code == CURLE_OK);
code = curl_easy_setopt(fetch->curl_handle, CURLOPT_WRITEHEADER, fetch);
assert(code == CURLE_OK);
/* TODO: remove referer header if fetch->referer == 0 */
if (fetch->referer != 0) {
code = curl_easy_setopt(fetch->curl_handle, CURLOPT_REFERER, fetch->referer);