forked from tungstenfabric/tf-webui-third-party
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrestler_2.0.1.patch
31 lines (28 loc) · 1.1 KB
/
restler_2.0.1.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff -Naur old/contrail-webui-third-party/node_modules/restler/lib/restler.js new/restler/lib/restler.js
--- old/contrail-webui-third-party/node_modules/restler/lib/restler.js 2014-04-25 08:09:20.000000000 +0530
+++ new/contrail-webui-third-party/node_modules/restler/lib/restler.js 2014-04-25 08:09:39.000000000 +0530
@@ -76,6 +76,7 @@
}
var proto = (this.url.protocol == 'https:') ? https : http;
+ proto.globalAgent.maxSockets = Infinity;
this.request = proto.request({
host: this.url.hostname,
@@ -195,6 +196,7 @@
}
},
_fireError: function(err, response) {
+ console.log(err.stack);
this.emit('error', err, response);
this.emit('complete', err, response);
},
@@ -406,9 +408,9 @@
try {
var xml2js = require('xml2js');
- parsers.xml = function(data, callback) {
+ parsers.xml = function(data, callback, options) {
if (data) {
- var parser = new xml2js.Parser();
+ var parser = new xml2js.Parser(options);
parser.parseString(data, function(err, data) {
if (err) {
err.message = 'Failed to parse XML body: ' + err.message;