From 68065351dfeea5cb4c1ea630b02ae7455d416ed9 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Thu, 19 Sep 2024 01:03:07 -0700 Subject: [PATCH] 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`. --- ext/fetch/proxy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/fetch/proxy.rs b/ext/fetch/proxy.rs index b06e0fb359..88fc211ecc 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); } }