Hello,
I need to post some data to a distant API. But it looks like the API wants Content-Type: application/json but I'm sending a Content-Type: application/json; charset=utf-8.
I forced the headers:
Map<String, String> headers = {
HttpHeaders.AUTHORIZATION: 'Bearer ${this._token}',
HttpHeaders.CONTENT_TYPE: 'application/json'
};
but keep sending with the charset. Is there a possibility to remove it from the Content Typeheader ?
Thanks
Hello,
I need to post some data to a distant API. But it looks like the API wants
Content-Type: application/jsonbut I'm sending aContent-Type: application/json; charset=utf-8.I forced the headers:
but keep sending with the charset. Is there a possibility to remove it from the
Content Typeheader ?Thanks