From 07535a4f87bcf953959b55ab1aa95a2d1134ff23 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 20 Jul 2022 23:29:09 +0200 Subject: [PATCH] sendf: skip storing HTTP headers if HTTP disabled Closes #9179 --- lib/sendf.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.47.3