readAll returning empty object
Opened this issue · 0 comments
kzlar commented
Hey,
I'm not sure if this is a recent change by Apple but readAll
stopped working for me. I'm getting an empty object {}
for API calls that used to work.
Upon debugging, it seems like the isJson
check is failing, what I ended up doing is locally patching the following line
const isJson = (contentType === 'application/json' || contentType === 'application/vnd.api+json');
to
const isJson = (contentType === 'application/json' || contentType === 'application/json;' || contentType === 'application/vnd.api+json');
and everything is working again.
ty for this library btw, really useful ;)