Re: [whatwg/fetch] Why doesn't the "body" member of RequestInit have a default value? (#933)

Step 14 of the constructor reads

> If init is not empty, then: 

which would be affected by this change.

What is a little weird to me though is that if you do `new Request(oldRequestWithBody, { body: null })` it doesn't seem like the body would get cleared. Maybe I'm missing something with disturbed/locked though, would have to investigate more deeply.

-- 
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/933#issuecomment-529956265

Received on Tuesday, 10 September 2019 14:16:50 UTC