mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
Co-authored-by: Rudransh Gupta <rudranshgupta@Rudranshs-MacBook-Pro.local> Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
@@ -108,7 +108,7 @@ const defaults = {
|
||||
|
||||
if (data && utils.isString(data) && ((forcedJSONParsing && !this.responseType) || JSONRequested)) {
|
||||
const silentJSONParsing = transitional && transitional.silentJSONParsing;
|
||||
const strictJSONParsing = !silentJSONParsing && JSONRequested;
|
||||
const strictJSONParsing = !silentJSONParsing;
|
||||
|
||||
try {
|
||||
return JSON.parse(data, this.parseReviver);
|
||||
@@ -158,4 +158,4 @@ utils.forEach(['delete', 'get', 'head', 'post', 'put', 'patch'], (method) => {
|
||||
defaults.headers[method] = {};
|
||||
});
|
||||
|
||||
export default defaults;
|
||||
export default defaults;
|
||||
Reference in New Issue
Block a user