mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
Fixes https host header default port handling.
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user