Skip to content

Commit

Permalink
fix(ext/fetch): fix lowercase http_proxy classified as https (#25686)
Browse files Browse the repository at this point in the history
While investigating something else, I noticed this typo which treated
`http_proxy` as `Filter::Https`.
  • Loading branch information
seanmonstar committed Sep 19, 2024
1 parent d420829 commit 6806535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/fetch/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 6806535

Please sign in to comment.