Re: [fetch] Automatically set request's "Content-Type" to "application/json" for POJOs (#47)

Having a case for auto-encode to JSON would be really helpful for Beacon API. As of right now, there is no way to beacon a JSON payload [via Beacon API](https://w3c.github.io/beacon/#sec-sendBeacon-method)... You can JSON.stringify the payload yourself, but then the Content-Type is set as plain text; there is no way to override the content-type.

I'd love to see this reopened.

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

Received on Tuesday, 29 September 2015 05:31:22 UTC