summaryrefslogtreecommitdiff
path: root/ext/fetch
diff options
context:
space:
mode:
authorSean McArthur <sean@seanmonstar.com>2024-09-19 01:03:07 -0700
committerGitHub <noreply@github.com>2024-09-19 08:03:07 +0000
commit68065351dfeea5cb4c1ea630b02ae7455d416ed9 (patch)
tree04d7d5d9617c9fb3bc7ac9e6a9f7529bbbf994ea /ext/fetch
parentd420829908844540377eedcfe5022e82820a0a68 (diff)
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`.
Diffstat (limited to 'ext/fetch')
-rw-r--r--ext/fetch/proxy.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fetch/proxy.rs b/ext/fetch/proxy.rs
index b06e0fb35..88fc211ec 100644
--- a/ext/fetch/proxy.rs
+++ b/ext/fetch/proxy.rs
@@ -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);
}
}