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