diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-12-14 14:10:33 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-12-18 09:58:03 +0100 |
commit | 34021b804dbe62b0bc606aacfefde53e54ddde05 (patch) | |
tree | 9f678ae2da88bad27af9350233543448c485ca68 | |
parent | 9211cb2034925476a5c8a79128133edf0785162d (diff) | |
download | curl-34021b804dbe62b0bc606aacfefde53e54ddde05.tar.gz |
getinfo: build with disabled HTTP support
-rw-r--r-- | lib/getinfo.c | 2 |
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; } |