From: Daniel Stenberg Date: Mon, 14 Dec 2020 13:10:33 +0000 (+0100) Subject: getinfo: build with disabled HTTP support X-Git-Tag: curl-7_75_0~219 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=34021b804dbe62b0bc606aacfefde53e54ddde05;p=thirdparty%2Fcurl.git getinfo: build with disabled HTTP support --- diff --git a/lib/getinfo.c b/lib/getinfo.c index fd8f4e8430..67ea07d2ee 100644 --- a/lib/getinfo.c +++ b/lib/getinfo.c @@ -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; }