Fixes https host header default port handling.

This commit is contained in:
Mikeal Rogers authored and isaacs committed 2011-08-07 17:37:56 -07:00
1 parent ef35f4d6c1
commit 24a1f6ecc5
2 files changed
+2

No files matched your search

+1
View File
@@ -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);
};