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
A response has an associated body (null or a body). Unless stated otherwise it is null.
However this polyfill never sets the body field in Response so it's always undefined. This causes downstream issues for applications that might use response.body to check if a response body exists.
The fetch standard says that
response.body
should benull
or abody
.https://fetch.spec.whatwg.org/#responses
However this polyfill never sets the body field in
Response
so it's alwaysundefined
. This causes downstream issues for applications that might useresponse.body
to check if a response body exists.Proposed Change
In
fetch.js
line 238fetch/fetch.js
Line 238 in ba5cf1e
assign the body field
I'm willing to open a PR if this proposal looks good to you.
The text was updated successfully, but these errors were encountered: