Browse Source

Fixes https host header default port handling.

v0.7.4-release
Mikeal Rogers 14 years ago
committed by isaacs
parent
commit
24a1f6ecc5
  1. 1
      lib/http2.js
  2. 1
      lib/https2.js

1
lib/http2.js

@ -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);
};

1
lib/https2.js

@ -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…
Cancel
Save