Skip to content

Response contructor is incompatible with other browser implementations #576

@spearmootz

Description

@spearmootz

if you use new Response directly and use 204 responses you get the following issue.

new Response('', Init)
fails on chrome because it expects no body. you can do

new Response(null, init)
fails on Firefox because body cannot be null

but you can do in both firefox, chrome, Edge, safari
new Response(init);

but that fails when using this polyfill.

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