1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

setopt() works with the new CURLOPT_HEADERFUNCTION:

This commit is contained in:
Daniel Stenberg 2001-04-10 06:51:25 +00:00
parent 025fa762f6
commit 90bb87b40e

View File

@ -719,6 +719,12 @@ CURLcode Curl_setopt(CURL *curl, CURLoption option, ...)
*/
data->err = va_arg(param, FILE *);
break;
case CURLOPT_HEADERFUNCTION:
/*
* Set header write callback
*/
data->fwrite_header = va_arg(param, curl_write_callback);
break;
case CURLOPT_WRITEFUNCTION:
/*
* Set data write callback