2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

Fixed merge conflict

This commit is contained in:
Jay
2022-03-09 19:57:04 +02:00
29 changed files with 339 additions and 230 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
var utils = require('../utils');
var normalizeHeaderName = require('../helpers/normalizeHeaderName');
var enhanceError = require('../core/enhanceError');
var AxiosError = require('../core/AxiosError');
var transitionalDefaults = require('./transitional');
var DEFAULT_CONTENT_TYPE = {
@@ -87,7 +87,7 @@ var defaults = {
} catch (e) {
if (strictJSONParsing) {
if (e.name === 'SyntaxError') {
throw enhanceError(e, this, 'E_JSON_PARSE');
throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
}
throw e;
}