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

fix(http): fixed a regression that caused the data stream to be interrupted for responses with non-OK HTTP statuses; (#7193)

This commit is contained in:
Dmitriy Mozgovoy
2025-10-28 20:44:08 +02:00
committed by GitHub
parent c9b33712aa
commit bcd5581d20
2 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -737,7 +737,7 @@ export default isHttpAdapterSupported && function httpAdapter(config) {
if (responseType === 'stream') {
response.data = responseStream;
settle(resolve, abort, response);
settle(resolve, reject, response);
} else {
const responseBuffer = [];
let totalResponseBytes = 0;