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

@bzbarsky, my idea was that if you pass in a string you'd get the JSON treatment.

It's somewhat appealing to do since we also have `json()` and it would make a likely common case even more trivial.

I disagree with @domenic that `Content-Type` defaulting based on a specific object (not a stream or `ArrayBuffer`, mind you) is bad. The developer still has full control over the `Content-Type` header either way.

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

Received on Wednesday, 6 May 2015 07:39:06 UTC