We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently, if you don't specify a resposeType in the config object, it assumes the response is JSON and attempts to call the .json() method.
resposeType
.json()
There's a way to opt out, but passing in a config object of { responseType: 'raw' } (or anything other than json or text).
{ responseType: 'raw' }
json
text
the default behavior, however, should likely be to just return the raw response. Users can then opt-in to the JSON/Text behavior.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, if you don't specify a
resposeType
in the config object, it assumes the response is JSON and attempts to call the.json()
method.There's a way to opt out, but passing in a config object of
{ responseType: 'raw' }
(or anything other thanjson
ortext
).the default behavior, however, should likely be to just return the raw response. Users can then opt-in to the JSON/Text behavior.
The text was updated successfully, but these errors were encountered: