sendf: fix compiler warning with CURL_DISABLE_HEADERS_API

fix MSVC warning C4189: 'htype': local variable is initialized but not
referenced - when CURL_DISABLE_HEADERS_API is defined.

Closes #12485
This commit is contained in:
MAntoniak 2023-12-08 01:07:38 +01:00 committed by Daniel Stenberg
parent ede2e812c2
commit 13a1d1ace8
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -345,7 +345,7 @@ static CURLcode chop_write(struct Curl_easy *data,
len -= chunklen;
}
#ifndef CURL_DISABLE_HTTP
#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_HEADERS_API)
/* HTTP header, but not status-line */
if((conn->handler->protocol & PROTO_FAMILY_HTTP) &&
(type & CLIENTWRITE_HEADER) && !(type & CLIENTWRITE_STATUS) ) {