Open inadarei opened 6 years ago
This is regarding: https://github.com/mikeal/r2/blob/master/index.js#L73
If current code sees that you are passing json it overrides content-type header to be set to application/json. But application/json is not the only JSON media type. There're plenty of others:
application/json
to name just a few
Probably just make the opts.headers override this.
This is regarding: https://github.com/mikeal/r2/blob/master/index.js#L73
If current code sees that you are passing json it overrides content-type header to be set to
application/json
. But application/json is not the only JSON media type. There're plenty of others:to name just a few