1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-21 23:04:45 -05:00

fix(ext/fetch): fix lowercase http_proxy classified as https (#25686)

While investigating something else, I noticed this typo which treated
`http_proxy` as `Filter::Https`.
This commit is contained in:
Sean McArthur 2024-09-19 01:03:07 -07:00 committed by GitHub
parent d420829908
commit 68065351df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -97,7 +97,7 @@ pub(crate) fn from_env() -> Proxies {
if env::var_os("REQUEST_METHOD").is_none() {
if let Some(proxy) = parse_env_var("HTTP_PROXY", Filter::Http) {
intercepts.push(proxy);
} else if let Some(proxy) = parse_env_var("http_proxy", Filter::Https) {
} else if let Some(proxy) = parse_env_var("http_proxy", Filter::Http) {
intercepts.push(proxy);
}
}