diff options
author | Daniel Stenberg <daniel@haxx.se> | 2022-07-20 23:29:09 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-07-23 13:39:10 +0200 |
commit | 07535a4f87bcf953959b55ab1aa95a2d1134ff23 (patch) | |
tree | 18257fba9bc45f3cdb06b6df4a408fef91820a9e /lib/sendf.c | |
parent | 3be0c67379f024f90c7c27d9540d56f85657a806 (diff) | |
download | curl-07535a4f87bcf953959b55ab1aa95a2d1134ff23.tar.gz |
sendf: skip storing HTTP headers if HTTP disabled
Closes #9179
Diffstat (limited to 'lib/sendf.c')
-rw-r--r-- | lib/sendf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sendf.c b/lib/sendf.c index 62cfd3524..2fe7169dd 100644 --- a/lib/sendf.c +++ b/lib/sendf.c @@ -586,6 +586,7 @@ static CURLcode chop_write(struct Curl_easy *data, len -= chunklen; } +#ifndef CURL_DISABLE_HTTP /* HTTP header, but not status-line */ if((conn->handler->protocol & PROTO_FAMILY_HTTP) && (type & CLIENTWRITE_HEADER) && !(type & CLIENTWRITE_STATUS) ) { @@ -598,6 +599,7 @@ static CURLcode chop_write(struct Curl_easy *data, if(result) return result; } +#endif if(writeheader) { size_t wrote; |