Skip to content

Commit 43be0ab

Browse files
committed
https-proxy-agent: default the "port" to 443 if not set
For node >= v0.11.6 :\
1 parent d026971 commit 43be0ab

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
@@ -60,6 +60,7 @@ inherits(HttpsProxyAgent, Agent);
6060
*/
6161

6262
function connect (req, opts, fn) {
63+
if (null == opts.port) opts.port = 443;
6364

6465
var socket;
6566
if (this.secureProxy) {

0 commit comments

Comments
 (0)