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.
This commit is contained in:
isaacs
2011-02-23 14:46:35 -08:00
committed by Ryan Dahl
parent e1a72f0e2e
commit 6d85da185c
3 changed files with 164 additions and 5 deletions

View File

@@ -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?