2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-08 17:22:34 +03:00

fix: issues with version 1.13.3 (#7352)

This commit is contained in:
Jay
2026-01-27 08:04:06 +02:00
committed by GitHub
parent af4f6d960f
commit ee90dfc28a
5 changed files with 27 additions and 107 deletions
+2 -7
View File
@@ -159,13 +159,8 @@ class Axios {
promise = Promise.resolve(config);
let prevResult = config;
while (i < len) {
promise = promise
.then(chain[i++])
.then(result => { prevResult = result !== undefined ? result : prevResult })
.catch(chain[i++])
.then(() => prevResult);
promise = promise.then(chain[i++], chain[i++]);
}
return promise;
@@ -196,7 +191,7 @@ class Axios {
len = responseInterceptorChain.length;
while (i < len) {
promise = promise.then(responseInterceptorChain[i++]).catch(responseInterceptorChain[i++]);
promise = promise.then(responseInterceptorChain[i++], responseInterceptorChain[i++]);
}
return promise;