Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.

Commit a0b5b14

Browse files
jonapgarTooTallNate
authored andcommitted
add auth to proxyUri
Different proxies with same hostname/port but different auth parameters were receiving the same agent from cache.
1 parent cee68d4 commit a0b5b14

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ function ProxyAgent (opts) {
115115
this.proxyUri = url.format({
116116
protocol: protocol + ':',
117117
slashes: true,
118+
auth:opts.auth,
118119
hostname: opts.hostname || opts.host,
119120
port: opts.port
120121
});

0 commit comments

Comments
 (0)