Skip to content

Commit

Permalink
fix: don't assign kAgent twice (#2942)
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag authored Mar 10, 2024
1 parent 7da8232 commit e81dc8d
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 e81dc8d

Please sign in to comment.