aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-04-10 06:51:25 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-04-10 06:51:25 +0000
commit90bb87b40eb935e6cc833b677abec4cabe06c884 (patch)
tree4fa4f18a096fa9a8abf3f9838d555f8bb2b34f0f /lib
parent025fa762f644c9c1438c6669c4fe3e1800a112b5 (diff)
setopt() works with the new CURLOPT_HEADERFUNCTION:
Diffstat (limited to 'lib')
-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