Permalink
Browse files

Disable agents to prevent connections from being subject to the defau…

…lt max limit on connections per host.
  • Loading branch information...
mixu committed Sep 25, 2012
1 parent 193b0d9 commit 89586313be006873066dfd37465ac4f54c6819ab
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/XMLHttpRequest.js
View
@@ -30,7 +30,7 @@ exports.XMLHttpRequest = function() {
// Request settings
var settings = {};
-
+
// Disable header blacklist.
// Not part of XHR specs.
var disableHeaderCheck = false;
@@ -360,7 +360,8 @@ exports.XMLHttpRequest = function() {
port: port,
path: uri,
method: settings.method,
- headers: headers
+ headers: headers,
+ agent: false
};
// Reset error flag

0 comments on commit 8958631

Please sign in to comment.