You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have a response that sets directives in the Content-Type header, this breaks the response parsing in version v0.0.5. For example, if you specify charset ("application/json; charset=UTF-8"), then this leads to the response.json() call being skipped:
Description
If you have a response that sets directives in the
Content-Type
header, this breaks the response parsing in versionv0.0.5
. For example, if you specifycharset
("application/json; charset=UTF-8"
), then this leads to theresponse.json()
call being skipped:This results in response bodies that are
Blob
instead of an object.Solution
Instead of
JSON_CONTENT_TYPES.includes
, it should check ifcontentType
contains any of the elements inJSON_CONTENT_TYPES
Similar, but not exact logic is in the regular
fetcher.ts
.The temporary solution is to just not return
Content-Type
directives (but that's not necessarily the ideal solution).The text was updated successfully, but these errors were encountered: