Skip to content

Commit 2bfb4fd

Browse files
committed
fix: don't assign kAgent twice
1 parent c90af4a commit 2bfb4fd

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/dispatcher/proxy-agent.js

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ class ProxyAgent extends DispatcherBase {
4040
const { href, origin, port, protocol, username, password } = url
4141

4242
this[kProxy] = { uri: href, protocol }
43-
this[kAgent] = new Agent(opts)
4443
this[kInterceptors] = opts.interceptors?.ProxyAgent && Array.isArray(opts.interceptors.ProxyAgent)
4544
? opts.interceptors.ProxyAgent
4645
: []

0 commit comments

Comments
 (0)