Skip to content

Commit 4049ff2

Browse files
committed
https-proxy-agent: delete pathname from the proxy opts as well
Not strictly necessary, but a little bit cleaner...
1 parent 6119997 commit 4049ff2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

https-proxy-agent.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ function HttpsProxyAgent (opts) {
4848
// result of a `url.parse()` call... we need to remove the `path` portion so
4949
// that `net.connect()` doesn't attempt to open that as a unix socket file.
5050
delete proxy.path;
51+
delete proxy.pathname;
5152
}
5253

5354
this.proxy = proxy;

0 commit comments

Comments
 (0)