From 34021b804dbe62b0bc606aacfefde53e54ddde05 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 14 Dec 2020 14:10:33 +0100 Subject: [PATCH] getinfo: build with disabled HTTP support --- lib/getinfo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/getinfo.c b/lib/getinfo.c index fd8f4e843..67ea07d2e 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; }