aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/sendf.c3
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).