This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
XHR explicitly prohibits it. Fetch should do so too [1] [1] http://logs.glob.uno/?c=content#c259373
On further discussion [1], the Request constructor should throw an exception if such an attempt is made. For now Gecko is going to implement [2] something like: If init's body member is present, run these substeps: **If request's normalized method is GET or HEAD, throw a TypeError.** Let stream and Content-Type be the result of extracting init's body member. Set r's request's body to stream. 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. [1] http://logs.glob.uno/?c=content#c259382 [2] https://bugzilla.mozilla.org/show_bug.cgi?id=1122677
https://github.com/whatwg/fetch/commit/3d9655c4024e67fe4e20e8812e96e8ffa2b3cc0d