From da7e8df2063042cf55aa84c2821cada451964844 Mon Sep 17 00:00:00 2001 From: Felix Luthman Date: Tue, 25 Oct 2022 21:44:44 +0200 Subject: [PATCH] match no_proxy to subdomains --- packages/http-client/src/proxy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/http-client/src/proxy.ts b/packages/http-client/src/proxy.ts index f13409b5..bbea03bb 100644 --- a/packages/http-client/src/proxy.ts +++ b/packages/http-client/src/proxy.ts @@ -51,7 +51,7 @@ export function checkBypass(reqUrl: URL): boolean { .split(',') .map(x => x.trim().toUpperCase()) .filter(x => x)) { - if (upperReqHosts.some(x => x === upperNoProxyItem)) { + if (upperReqHosts.some(x => x.includes(upperNoProxyItem))) { return true } }