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:
parent
9211cb2034
commit
34021b804d
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user