1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
Description: Use xml2js version 0.1 defaults
Author: Tim Retout <diocles@debian.org>
Last-Update: 2014-08-23
Forwarded: https://github.com/e14n/webfinger/issues/26
Index: node-webfinger/lib/webfinger.js
===================================================================
--- node-webfinger.orig/lib/webfinger.js
+++ node-webfinger/lib/webfinger.js
@@ -95,7 +95,7 @@ var xrd2jrd = function(str, callback) {
};
Step(
function() {
- var parser = new xml2js.Parser();
+ var parser = new xml2js.Parser(xml2js.defaults["0.1"]);
parser.parseString(str, this);
},
function(err, doc) {
|