2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-21 13:24:11 +03:00

Fixing typo

This commit is contained in:
Nick Uraltsev
2017-03-01 22:54:44 -08:00
committed by GitHub
parent 142bce1fb0
commit b053f4b1b9
+1 -1
View File
@@ -137,7 +137,7 @@ module.exports = function xhrAdapter(config) {
try {
request.responseType = config.responseType;
} 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.
if (config.responseType !== 'json') {
throw e;