Skip to content

Don't check the contents of responseType #14

Closed
@ghost

Description

The generated code makes a comparison to see if xhr.responseType === 'json' but in my current Chrome, for example, this variable is always set to the empty string.

The generated code should only rely on the content-type header, and even in the absence of this header I would suggest trying to parse it as json anyway, or at least making it an option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions