]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
getinfo: build with disabled HTTP support
authorDaniel Stenberg <daniel@haxx.se>
Mon, 14 Dec 2020 13:10:33 +0000 (14:10 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 18 Dec 2020 08:58:03 +0000 (09:58 +0100)
lib/getinfo.c

index fd8f4e8430a008c055e1c89b0afa2626c8d1b3e9..67ea07d2eee7c94eb39945a7df0069432bfbca7d 100644 (file)
@@ -101,6 +101,7 @@ static CURLcode getinfo_char(struct Curl_easy *data, CURLINFO info,
     if(!m) {
       if(data->set.opt_no_body)
         m = "HEAD";
+#ifndef CURL_DISABLE_HTTP
       else {
         switch(data->state.httpreq) {
         case HTTPREQ_POST:
@@ -120,6 +121,7 @@ static CURLcode getinfo_char(struct Curl_easy *data, CURLINFO info,
           break;
         }
       }
+#endif
     }
     *param_charp = m;
   }