The parsers.xml.options object is only set in the shortcutOptions() method. However, when directly calling the request() method from client code, shortcutOptions() never gets called so the XML parser doesn't receive options set by the client. My fix for this was to change the first line in the request() method to:
var request = new Request(url, shortcutOptions(options, options.method));
If you'd like, I can submit a PR with this change.
The
parsers.xml.options
object is only set in theshortcutOptions()
method. However, when directly calling therequest()
method from client code,shortcutOptions()
never gets called so the XML parser doesn't receive options set by the client. My fix for this was to change the first line in therequest()
method to:var request = new Request(url, shortcutOptions(options, options.method));
If you'd like, I can submit a PR with this change.