Skip to content

Custom xml2js options not provided to parser when directly calling the request() method #257

@mbise1993

Description

@mbise1993

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions