mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:21:41 +03:00
configure: better --disable-http
- disable HTTPS-proxy as well, since it can't work without HTTP - curl_setup: when HTTP is disabled, also disable all features that are HTTP-only - version: HTTPS-proxy only exists if HTTP support exists Closes #12223
This commit is contained in:
parent
225db9196a
commit
d2d48f21f3
3 changed files with 44 additions and 14 deletions
|
|
@ -409,7 +409,8 @@ static int idn_present(curl_version_info_data *info)
|
|||
#define idn_present NULL
|
||||
#endif
|
||||
|
||||
#if defined(USE_SSL) && !defined(CURL_DISABLE_PROXY)
|
||||
#if defined(USE_SSL) && !defined(CURL_DISABLE_PROXY) && \
|
||||
!defined(CURL_DISABLE_HTTP)
|
||||
static int https_proxy_present(curl_version_info_data *info)
|
||||
{
|
||||
(void) info;
|
||||
|
|
@ -460,7 +461,8 @@ static const struct feat features_table[] = {
|
|||
#if defined(ENABLE_QUIC)
|
||||
FEATURE("HTTP3", NULL, CURL_VERSION_HTTP3),
|
||||
#endif
|
||||
#if defined(USE_SSL) && !defined(CURL_DISABLE_PROXY)
|
||||
#if defined(USE_SSL) && !defined(CURL_DISABLE_PROXY) && \
|
||||
!defined(CURL_DISABLE_HTTP)
|
||||
FEATURE("HTTPS-proxy", https_proxy_present, CURL_VERSION_HTTPS_PROXY),
|
||||
#endif
|
||||
#if defined(USE_LIBIDN2) || defined(USE_WIN32_IDN)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue