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

In implementation terms I'd probably extend Gecko's IDL with something like ByteString/DOMString/USVString but which uses JSON.stringify as the conversion algorithm.  In spec terms we could either add a new type like that or use any and manually do typechecks.

But it does seem odd to do this automagically as far as setting the type goes.

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

Received on Wednesday, 6 May 2015 07:28:16 UTC