From: Daniel Stenberg Date: Tue, 10 Apr 2001 06:51:25 +0000 (+0000) Subject: setopt() works with the new CURLOPT_HEADERFUNCTION: X-Git-Tag: curl-7_7_2~56 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=90bb87b40eb935e6cc833b677abec4cabe06c884;p=thirdparty%2Fcurl.git setopt() works with the new CURLOPT_HEADERFUNCTION: --- diff --git a/lib/url.c b/lib/url.c index 5bb34be71c..80469587e9 100644 --- a/lib/url.c +++ b/lib/url.c @@ -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