mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
Fixing typo
This commit is contained in:
+1
-1
@@ -137,7 +137,7 @@ module.exports = function xhrAdapter(config) {
|
|||||||
try {
|
try {
|
||||||
request.responseType = config.responseType;
|
request.responseType = config.responseType;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
// Expectes DOMException thrown by browsers not compatible XMLHttpRequest Level 2.
|
// Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.
|
||||||
// But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.
|
// But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.
|
||||||
if (config.responseType !== 'json') {
|
if (config.responseType !== 'json') {
|
||||||
throw e;
|
throw e;
|
||||||
|
|||||||
Reference in New Issue
Block a user