Skip to content

Commit

Permalink
fix: don't assign kAgent twice
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Mar 10, 2024
1 parent c90af4a commit 2bfb4fd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/dispatcher/proxy-agent.js
Expand Up @@ -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
: []
Expand Down

0 comments on commit 2bfb4fd

Please sign in to comment.