Skip to content

Commit

Permalink
fix: don't assign kAgent twice (nodejs#2942)
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag authored and KhafraDev committed Mar 14, 2024
1 parent 572c250 commit 3a93e4f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/dispatcher/proxy-agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
: []
Expand Down

0 comments on commit 3a93e4f

Please sign in to comment.