http: agent takes options instead of host, port pair

This commit is contained in:
Mikeal Rogers
2011-02-05 02:35:25 -08:00
committed by Ryan Dahl
parent 0da96cca59
commit 2b03ba5917
2 changed files with 7 additions and 9 deletions

View File

@@ -26,9 +26,7 @@ exports.createServer = function(opts, requestListener) {
var agents = {};
function Agent(options) {
http.Agent.call(this, options.host, options.port);
this.options = options;
http.Agent.call(this, options);
}
inherits(Agent, http.Agent);