diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-08-06 08:22:26 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-08-06 08:22:26 +0000 |
commit | 944f9a73f43d1f76f6b1697e2a0655f1811e067c (patch) | |
tree | 60b8d09a126fb1d490e17b073c67f6effb074bc6 | |
parent | 5ab1a10e9c1526cf48a9f6691bf1b91f9fd7e912 (diff) |
Jonathan Hseu noticed that you couldn't get a header callback unless you
set CURLOPT_WRITEHEADER to non-NULL, even if you didn't care about that
data. This is now fixed.
-rw-r--r-- | lib/sendf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sendf.c b/lib/sendf.c index 4417a888c..0408b1b81 100644 --- 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). |