aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/url.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 5bb34be71..80469587e 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