Skip to content

Edge's 'fetch' without a body in the response (204) not handled #105

@MariusGrandeAndersen

Description

@MariusGrandeAndersen

Our server has certain requests giving 204 No Content as a response to a fetch request.

On Chrome, the response object in response.js has a body that is ReadableStream (it is empty though) and bodyUsed = true.

On Microsoft Edge, the response object in response.js has a body = null and bodyUsed = false.

In the source code of response.js if mode === fetch then it expects a body, but this is not the case in Microsoft Edge.

Can you please add a "if response.body === null" style guard on the fetch response logic?

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