From: Daniel Stenberg Date: Wed, 20 Jul 2022 21:29:09 +0000 (+0200) Subject: sendf: skip storing HTTP headers if HTTP disabled X-Git-Tag: curl-7_85_0~132 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=07535a4f87bcf953959b55ab1aa95a2d1134ff23;p=thirdparty%2Fcurl.git sendf: skip storing HTTP headers if HTTP disabled Closes #9179 --- diff --git a/lib/sendf.c b/lib/sendf.c index 62cfd3524f..2fe7169dd2 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;