mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user