[whatwg/fetch] Request bodies with GET and HEAD (#390)

https://fetch.spec.whatwg.org/#request-class

> If either init's body member is present and is non\-null or inputBody is non\-null, and request's method is \`GET\` or \`HEAD\`, throw a TypeError\.

GET with a request body is allowed by the HTTP1.1 spec
Message-Body: https://tools.ietf.org/html/rfc2616#section-4.3
Get: https://tools.ietf.org/html/rfc2616#section-9.3
Keywords: https://www.ietf.org/rfc/rfc2119.txt

And APIs like ElasticSearch suggest it (though they have a POST fallback).
https://www.elastic.co/guide/en/elasticsearch/guide/current/_empty_search.html

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

Received on Thursday, 22 September 2016 20:49:26 UTC