2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-15 11:59:42 +03:00

fix(fetch): fixed a possible memory leak in the AbortController for the stream response if the ReadableStream is not supported; (#6406)

This commit is contained in:
Dmitriy Mozgovoy
2024-05-19 23:04:40 +03:00
committed by GitHub
parent b49aa8e3d8
commit e62099bc8b
+1 -1
View File
@@ -164,7 +164,7 @@ export default isFetchSupported && (async (config) => {
let response = await fetch(request);
const isStreamResponse = responseType === 'stream' || responseType === 'response';
const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
if (supportsResponseStream && (onDownloadProgress || isStreamResponse)) {
const options = {};