From 2bfb4fdcfa77d2647aa86424f07900110487bc42 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Sun, 10 Mar 2024 19:28:06 +0100 Subject: [PATCH] fix: don't assign kAgent twice --- 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 9df39edb1aa..58d9a5d5b55 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 } = url this[kProxy] = { uri: href, protocol } - this[kAgent] = new Agent(opts) this[kInterceptors] = opts.interceptors?.ProxyAgent && Array.isArray(opts.interceptors.ProxyAgent) ? opts.interceptors.ProxyAgent : []