mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
http: agent takes options instead of host, port pair
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user