From e81dc8da1755418f801431546026e3c9bcf91a43 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Sun, 10 Mar 2024 20:47:38 +0100 Subject: [PATCH] fix: don't assign kAgent twice (#2942) --- lib/dispatcher/proxy-agent.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/dispatcher/proxy-agent.js b/lib/dispatcher/proxy-agent.js index e06ce59523b..fda87db96a4 100644 --- a/lib/dispatcher/proxy-agent.js +++ b/lib/dispatcher/proxy-agent.js @@ -40,7 +40,6 @@ class ProxyAgent extends DispatcherBase { const { href, origin, port, protocol, username, password, hostname: proxyHostname } = url this[kProxy] = { uri: href, protocol } - this[kAgent] = new Agent(opts) this[kInterceptors] = opts.interceptors?.ProxyAgent && Array.isArray(opts.interceptors.ProxyAgent) ? opts.interceptors.ProxyAgent : []