2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

fix(fetch): fix headers getting from a stream response; (#6401)

This commit is contained in:
Dmitriy Mozgovoy
2024-05-19 01:40:21 +03:00
committed by GitHub
parent 95a3e8e346
commit 870e0a76f6
2 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -169,7 +169,7 @@ export default isFetchSupported && (async (config) => {
if (supportsResponseStream && (onDownloadProgress || isStreamResponse)) {
const options = {};
Object.getOwnPropertyNames(response).forEach(prop => {
['status', 'statusText', 'headers'].forEach(prop => {
options[prop] = response[prop];
});