summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-12-14 14:10:33 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-12-18 09:58:03 +0100
commit34021b804dbe62b0bc606aacfefde53e54ddde05 (patch)
tree9f678ae2da88bad27af9350233543448c485ca68
parent9211cb2034925476a5c8a79128133edf0785162d (diff)
downloadcurl-34021b804dbe62b0bc606aacfefde53e54ddde05.tar.gz
getinfo: build with disabled HTTP support
-rw-r--r--lib/getinfo.c2
1 files changed, 2 insertions, 0 deletions
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;
}