Skip to content

Commit 7149607

Browse files
authored
Do not create a proxy agent if proxy url is empty string.
fixes #8578
1 parent fd38eee commit 7149607

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/packageManager/proxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function getSystemProxyURL(requestURL: Url): string | undefined {
2121
export function getProxyAgent(requestURL: Url, proxy: string, strictSSL: boolean): Agent | undefined {
2222
const proxyURL = proxy.length > 0 ? proxy : getSystemProxyURL(requestURL);
2323

24-
if (proxyURL === undefined) {
24+
if (proxyURL === undefined || proxyURL.length === 0) {
2525
return undefined;
2626
}
2727

0 commit comments

Comments
 (0)