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:
@@ -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 = {};
|
||||
|
||||
Reference in New Issue
Block a user