Skip to content

Commit

Permalink
fix(api/fetch): attempt to pass untyped buffer
Browse files Browse the repository at this point in the history
Buffer.concat expects either a Buffer or a Uint8Array not an untyped ArrayBuffer
  • Loading branch information
chrisfarms authored and jwerle committed Jul 9, 2024
1 parent bc52ef6 commit 99d1fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/fetch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async function initBody (body) {

for await (const chunk of body) {
controller.enqueue(chunk)
chunks.push(chunk)
chunks.push(new Uint8Array(chunk))
}

const buffer = Buffer.concat(chunks)
Expand Down

0 comments on commit 99d1fcb

Please sign in to comment.