diff options
author | isaacs <i@izs.me> | 2011-02-23 14:46:35 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-04-01 17:40:41 -0700 |
commit | 6d85da185c850cf871e1aeec25baa3da1971610f (patch) | |
tree | cab0d941cf2a68da741da6df01c58b4886ce9b12 /lib/https.js | |
parent | e1a72f0e2e4fa668d73657c55ed399f674af6ec0 (diff) | |
download | node-new-6d85da185c850cf871e1aeec25baa3da1971610f.tar.gz |
Closes GH-721 Set default host header properly
However, this test is failing for some quite unrelated issue.
Getting some odd "socket hangup" crashes, and only the first request
ever makes it to the server.
Diffstat (limited to 'lib/https.js')
-rw-r--r-- | lib/https.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/https.js b/lib/https.js index 595f8a962b..bd2e4617a4 100644 --- a/lib/https.js +++ b/lib/https.js @@ -54,6 +54,9 @@ function Agent(options) { inherits(Agent, http.Agent); +Agent.prototype.defaultPort = 443; + + Agent.prototype._getConnection = function(host, port, cb) { var s = tls.connect(port, host, this.options, function() { // do other checks here? |