]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
sendf: skip storing HTTP headers if HTTP disabled
authorDaniel Stenberg <daniel@haxx.se>
Wed, 20 Jul 2022 21:29:09 +0000 (23:29 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 23 Jul 2022 11:39:10 +0000 (13:39 +0200)
Closes #9179

lib/sendf.c

index 62cfd3524f675c1dcdcb776eefcb959089f70237..2fe7169dd2b4ea04c088f6f9b01234b09ec9dcd7 100644 (file)
@@ -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;