Fixes https host header default port handling.
This commit is contained in:
parent
ef35f4d6c1
commit
24a1f6ecc5
@ -1259,6 +1259,7 @@ exports.request = function(options, cb) {
|
||||
if (options.agent === undefined) {
|
||||
options.agent = globalAgent;
|
||||
}
|
||||
options.defaultPort = options.defaultPort || 80;
|
||||
return new ClientRequest(options, cb);
|
||||
};
|
||||
|
||||
|
@ -69,6 +69,7 @@ exports.request = function(options, cb) {
|
||||
if (options.agent === undefined) {
|
||||
options.agent = globalAgent;
|
||||
}
|
||||
options.defaultPort = options.defaultPort || 443;
|
||||
return http.request(options, cb);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user