mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05:00
setopt() works with the new CURLOPT_HEADERFUNCTION:
This commit is contained in:
parent
025fa762f6
commit
90bb87b40e
@ -719,6 +719,12 @@ CURLcode Curl_setopt(CURL *curl, CURLoption option, ...)
|
|||||||
*/
|
*/
|
||||||
data->err = va_arg(param, FILE *);
|
data->err = va_arg(param, FILE *);
|
||||||
break;
|
break;
|
||||||
|
case CURLOPT_HEADERFUNCTION:
|
||||||
|
/*
|
||||||
|
* Set header write callback
|
||||||
|
*/
|
||||||
|
data->fwrite_header = va_arg(param, curl_write_callback);
|
||||||
|
break;
|
||||||
case CURLOPT_WRITEFUNCTION:
|
case CURLOPT_WRITEFUNCTION:
|
||||||
/*
|
/*
|
||||||
* Set data write callback
|
* Set data write callback
|
||||||
|
Loading…
Reference in New Issue
Block a user