Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Aug 5, 2021
1 parent 8c198e1 commit 871eb47
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/api/api-fetch/response.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,8 @@ class Response {
throw new TypeError('unusable')
}

this[kBodyUsed] = true

if (this[kBody].stream) {
this[kBodyUsed] = true
for await (const chunk of this[kBody].stream) {
chunks.push(chunk)
}
Expand Down

0 comments on commit 871eb47

Please sign in to comment.