Jonathan Hseu noticed that you couldn't get a header callback unless you
set CURLOPT_WRITEHEADER to non-NULL, even if you didn't care about that data. This is now fixed.
This commit is contained in:
parent
5ab1a10e9c
commit
944f9a73f4
@ -230,7 +230,8 @@ CURLcode Curl_client_write(struct UrlData *data,
|
||||
return CURLE_WRITE_ERROR;
|
||||
}
|
||||
}
|
||||
if((type & CLIENTWRITE_HEADER) && data->writeheader) {
|
||||
if((type & CLIENTWRITE_HEADER) &&
|
||||
(data->fwrite_header || data->writeheader) ) {
|
||||
/*
|
||||
* Write headers to the same callback or to the especially setup
|
||||
* header callback function (added after version 7.7.1).
|
||||
|
Loading…
Reference in New Issue
Block a user