Skip to content
New issue

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

Fetch HTTP Client -- should discriminate between JSON and Text responses #120

Open
CarlosNZ opened this issue Oct 23, 2024 · 0 comments
Open
Labels
bug Something isn't working should do Something that needs to happen

Comments

@CarlosNZ
Copy link
Owner

Currently it just attempts to call the json() method on the result, which gives an error if the result content is plain text.

Need to check the Content-Type header, then parse accordingly.

@CarlosNZ CarlosNZ added bug Something isn't working should do Something that needs to happen labels Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working should do Something that needs to happen
Projects
None yet
Development

No branches or pull requests

1 participant