add disclaimer about uppercase HTTP_PROXY

This commit is contained in:
Ahmet Oeztuerk 2026-02-13 16:50:21 +01:00
parent c376b3ab4c
commit 96b2c90cf6

View file

@ -124,6 +124,9 @@ check_curl_configure_curl(const check_curl_static_curl_config config,
/* lower case proxy environment variables are almost always accepted, while some programs also checking
uppercase ones. discover both, but take the lowercase one if both are present */
/* extra information: libcurl does not discover the uppercase version HTTP_PROXY due to security reasons */
/* https://github.com/curl/curl/blob/d445f2d930ae701039518d695481ee53b8490521/lib/url.c#L1987 */
/* first environment variable to read is all_proxy. it can be overridden by protocol specific environment variables */
char *all_proxy_env, *all_proxy_uppercase_env;
all_proxy_env = getenv("all_proxy");