Skip to content

readAll returning empty object #7

@kzlar

Description

@kzlar

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 ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions