summaryrefslogtreecommitdiff
path: root/Utilities/cmcurl/lib/getinfo.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-02-03 11:55:06 -0500
committerBrad King <brad.king@kitware.com>2021-02-03 11:55:06 -0500
commit426ef61cc8d850ad6877d0598a9917ce9a4f2b20 (patch)
tree139e0e0af11012c1cd5e9c89d90305bf6d68e916 /Utilities/cmcurl/lib/getinfo.c
parent0341888c006c19d0057017231ed43279d53e6034 (diff)
parent076b3219f58ca16afa52fe095019a05537ade0f3 (diff)
downloadcmake-426ef61cc8d850ad6877d0598a9917ce9a4f2b20.tar.gz
Merge branch 'upstream-curl' into update-curl
* upstream-curl: curl 2021-02-03 (2f33be81)
Diffstat (limited to 'Utilities/cmcurl/lib/getinfo.c')
-rw-r--r--Utilities/cmcurl/lib/getinfo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Utilities/cmcurl/lib/getinfo.c b/Utilities/cmcurl/lib/getinfo.c
index fd8f4e8430..67ea07d2ee 100644
--- a/Utilities/cmcurl/lib/getinfo.c
+++ b/Utilities/cmcurl/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;
}