summaryrefslogtreecommitdiff
path: root/lib/http.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2013-08-05 12:33:19 -0700
committerisaacs <i@izs.me>2013-08-05 12:33:19 -0700
commit32fdae2ca3bd4df057ae01b7cd78961968fa0fd0 (patch)
tree0cb2850f551d90d42d691d424a9c6c2f2c998850 /lib/http.js
parent222e5239fc5fc699cc5b4c2aa34377a52c699670 (diff)
downloadandroid-node-v8-32fdae2ca3bd4df057ae01b7cd78961968fa0fd0.tar.gz
android-node-v8-32fdae2ca3bd4df057ae01b7cd78961968fa0fd0.tar.bz2
android-node-v8-32fdae2ca3bd4df057ae01b7cd78961968fa0fd0.zip
http: Fix overlooked agent.globalAgent export
Noticed by @bnoordhuis in https://github.com/joyent/node/pull/5991#discussion_r5575946
Diffstat (limited to 'lib/http.js')
-rw-r--r--lib/http.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/http.js b/lib/http.js
index 38bfb4b682..f3b6fe77cf 100644
--- a/lib/http.js
+++ b/lib/http.js
@@ -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;