Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

Commit

Permalink
http: Fix overlooked agent.globalAgent export
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Aug 5, 2013
1 parent 222e523 commit 32fdae2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/_http_agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,3 +284,5 @@ Agent.prototype.get = function(options, cb) {
req.end();
return req;
};

exports.globalAgent = new Agent();
3 changes: 1 addition & 2 deletions lib/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ exports.STATUS_CODES = server.STATUS_CODES;

var agent = require('_http_agent');
var Agent = exports.Agent = agent.Agent;
var globalAgent = new Agent();
exports.globalAgent = globalAgent;
var globalAgent = exports.globalAgent = agent.globalAgent;

var client = require('_http_client');
var ClientRequest = exports.ClientRequest = client.ClientRequest;
Expand Down

0 comments on commit 32fdae2

Please sign in to comment.