urql-graphql / urql

The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
https://urql.dev/goto/docs
MIT License
8.63k stars 451 forks source link

chore(core): try to parse a text/plain content-type response as json #3430

Closed JoviDeCroock closed 10 months ago

JoviDeCroock commented 10 months ago

Summary

As seen in https://github.com/urql-graphql/urql/discussions/3429, some servers send back the response as text/plain which can still be valid JSON.

changeset-bot[bot] commented 10 months ago

🦋 Changeset detected

Latest commit: 9410b434fc4c6f5b8ceb488def5006078ca35cbf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ---------- | ----- | | @urql/core | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR