2
0
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:
Daniel Lopretto
2021-05-21 01:51:31 -04:00
committed by GitHub
parent 3958e9fbc8
commit dbc634cf70
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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;