mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -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:
parent
d420829908
commit
68065351df
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ pub(crate) fn from_env() -> Proxies {
|
||||||
if env::var_os("REQUEST_METHOD").is_none() {
|
if env::var_os("REQUEST_METHOD").is_none() {
|
||||||
if let Some(proxy) = parse_env_var("HTTP_PROXY", Filter::Http) {
|
if let Some(proxy) = parse_env_var("HTTP_PROXY", Filter::Http) {
|
||||||
intercepts.push(proxy);
|
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);
|
intercepts.push(proxy);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue