mirror of
https://github.com/tenrok/axios.git
synced 2026-06-11 18:02:32 +03:00
Remove charset in tests (#3807)
* removed charset setting when setting default header * Remove charset from tests Co-authored-by: mpark86 <dev.minuk.park@gmail.com> Co-authored-by: Jay <jasonsaayman@gmail.com> Co-authored-by: Pilot <timemachine@ctrl-c.club>
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ var defaults = {
|
||||
return data.toString();
|
||||
}
|
||||
if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {
|
||||
setContentTypeIfUnset(headers, 'application/json;charset=utf-8');
|
||||
setContentTypeIfUnset(headers, 'application/json');
|
||||
return JSON.stringify(data);
|
||||
}
|
||||
return data;
|
||||
|
||||
Reference in New Issue
Block a user