Re: [whatwg/fetch] It is possible to construct a Request with a used body (#792)

I think it depends on what the behavior of Response's constructor should be. Right now, it will also accept a disturbed but unlocked ReadableStream as its first parameter.

That's less of an issue, since there's no surprising case like `fetch()` for Responses. Nevertheless, if we put the check in the body extraction operation, we could remove step 38 from the Request constructor and "fix" both classes. By my reading, it shouldn't cause any problems elsewhere where a body is extracted.

I'll leave it to @yutakahirano. I'd be happy to make a PR with either solution.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/792#issuecomment-413898585

Received on Friday, 17 August 2018 15:17:37 UTC