Re: [fetch] Is it allowed to create a GET request with body? (#44)

Oh, I didn't notice extracting _init_'s body doesn't work when it's null (and _temporaryBody_ is non-null). How about the following?

(27) If _init_'s body member is present:

  1. Let stream and Content-Type be the result of extracting init's body member.
  1. Set temporaryBody to stream.
  1. If Content-Type is non-null and r's request's header list contains no header named `Content-Type`, append `Content-Type`/Content-Type to r's Headers object. Rethrow any exception.

(28) If _temporaryBody_ is non-null and request's method is `GET` or `HEAD`, throw a TypeError.


---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/44#issuecomment-92723175

Received on Tuesday, 14 April 2015 09:44:19 UTC