1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 16:48:49 -05:00

getinfo: build with disabled HTTP support

This commit is contained in:
Daniel Stenberg 2020-12-14 14:10:33 +01:00
parent 9211cb2034
commit 34021b804d
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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;
}