Skip to content

Commit 71c347e

Browse files
committed
fine tuning of xml parser
1 parent 162fc2c commit 71c347e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var xml2js = require('xml2js'),
88
url = require('url'),
99
os = require('os');
1010

11-
var parser = new xml2js.Parser({explicitArray: false});
11+
var parser = new xml2js.Parser({explicitArray: false, mergeAttrs: true});
1212

1313
var reNumber = /^[\.\+\-]?[\d\.]+$/,
1414
reInvalidDec = /(?:\.\d*){2,}/,

lib/webpagetest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ function api(pathname, callback, query, options) {
160160
if (typeof callback === 'function') {
161161
callback.apply(this, [err, obj].concat(options.args));
162162
}
163-
return;
164163
});
164+
return;
165165
} else if (info.type === 'text/html') {
166166
data = {result: (reHTMLOutput.exec(data) || [])[1]};
167167
}

0 commit comments

Comments
 (0)