summaryrefslogtreecommitdiff
path: root/lib/https.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-02-23 14:46:35 -0800
committerRyan Dahl <ry@tinyclouds.org>2011-04-01 17:40:41 -0700
commit6d85da185c850cf871e1aeec25baa3da1971610f (patch)
treecab0d941cf2a68da741da6df01c58b4886ce9b12 /lib/https.js
parente1a72f0e2e4fa668d73657c55ed399f674af6ec0 (diff)
downloadandroid-node-v8-6d85da185c850cf871e1aeec25baa3da1971610f.tar.gz
android-node-v8-6d85da185c850cf871e1aeec25baa3da1971610f.tar.bz2
android-node-v8-6d85da185c850cf871e1aeec25baa3da1971610f.zip
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.js3
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?