mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 20:38:55 +00: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:
parent
d420829908
commit
68065351df
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user