[whatwg/fetch] aborting locked request body (#1286)

In https://fetch.spec.whatwg.org/#abort-fetch it says:

> If request’s body is not null and is readable, then cancel request’s body with error.

However, there is no check for whether the body is "locked" which means that "cancel" can throw, which doesn't seem to be taken into account here (only whether or not the stream is readable).

-- 
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/1286

Received on Tuesday, 10 August 2021 17:41:42 UTC