projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ab1a10
)
Jonathan Hseu noticed that you couldn't get a header callback unless you
author
Daniel Stenberg
<daniel@haxx.se>
Mon, 6 Aug 2001 08:22:26 +0000
(08:22 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Mon, 6 Aug 2001 08:22:26 +0000
(08:22 +0000)
set CURLOPT_WRITEHEADER to non-NULL, even if you didn't care about that
data. This is now fixed.
lib/sendf.c
patch
|
blob
|
history
diff --git
a/lib/sendf.c
b/lib/sendf.c
index
4417a88
..
0408b1b
100644
(file)
--- a/
lib/sendf.c
+++ b/
lib/sendf.c
@@
-230,7
+230,8
@@
CURLcode Curl_client_write(struct UrlData *data,
return CURLE_WRITE_ERROR;
}
}
- if((type & CLIENTWRITE_HEADER) && data->writeheader) {
+ if((type & CLIENTWRITE_HEADER) &&
+ (data->fwrite_header || data->writeheader) ) {
/*
* Write headers to the same callback or to the especially setup
* header callback function (added after version 7.7.1).