- From: Brenton Simpson <notifications@github.com>
- Date: Tue, 05 May 2015 18:07:00 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Wednesday, 6 May 2015 01:07:26 UTC
As I read the [Body Mixins](https://fetch.spec.whatwg.org/#body-mixin) section, `options.body` can be introspected for certain types, which will cause the `Content-Type` header to be set appropriately. Can we have it check for plain-ol'-JS-objects (or any other stringifyable type), run `JSON.stringify(options.body`), and set `options.headers["Content-Type"] = "application/json"`? --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/47
Received on Wednesday, 6 May 2015 01:07:26 UTC