1
0
mirror of https://github.com/moparisthebest/curl synced 2025-01-14 15:38:13 -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(!m) {
if(data->set.opt_no_body) if(data->set.opt_no_body)
m = "HEAD"; m = "HEAD";
#ifndef CURL_DISABLE_HTTP
else { else {
switch(data->state.httpreq) { switch(data->state.httpreq) {
case HTTPREQ_POST: case HTTPREQ_POST:
@ -120,6 +121,7 @@ static CURLcode getinfo_char(struct Curl_easy *data, CURLINFO info,
break; break;
} }
} }
#endif
} }
*param_charp = m; *param_charp = m;
} }