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
1 changed files with 6 additions and 0 deletions

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