mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:53:34 +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
|
|
@ -219,6 +219,23 @@
|
|||
# define CURL_DISABLE_RTSP
|
||||
#endif
|
||||
|
||||
/*
|
||||
* When HTTP is disabled, disable HTTP-only features
|
||||
*/
|
||||
|
||||
#if defined(CURL_DISABLE_HTTP)
|
||||
# define CURL_DISABLE_ALTSVC 1
|
||||
# define CURL_DISABLE_COOKIES 1
|
||||
# define CURL_DISABLE_BASIC_AUTH 1
|
||||
# define CURL_DISABLE_BEARER_AUTH 1
|
||||
# define CURL_DISABLE_AWS 1
|
||||
# define CURL_DISABLE_DOH 1
|
||||
# define CURL_DISABLE_FORM_API 1
|
||||
# define CURL_DISABLE_HEADERS_API 1
|
||||
# define CURL_DISABLE_HSTS 1
|
||||
# define CURL_DISABLE_HTTP_AUTH 1
|
||||
#endif
|
||||
|
||||
/* ================================================================ */
|
||||
/* No system header file shall be included in this file before this */
|
||||
/* point. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue