Skip to content

Commit

Permalink
Update packages/fetch/index.js
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Mebberson <74628+smebberson@users.noreply.github.com>
  • Loading branch information
allanchau and smebberson committed Mar 12, 2024
1 parent 82e7ed1 commit 5230dbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/fetch/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
'use strict';

const parseBody = async (response) => {
const decoder = new TextDecoder();
let body = '';

for await (const chunk of response.body) {
body += new TextDecoder().decode(chunk);
body += decoder.decode(chunk);
}

if (
Expand Down

0 comments on commit 5230dbb

Please sign in to comment.