Skip to content

Commit

Permalink
🎉 feat: async resolve macro
Browse files Browse the repository at this point in the history
  • Loading branch information
SaltyAom committed Dec 10, 2024
1 parent 61beb3c commit 18d4676
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/universal/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,5 +202,6 @@ async function readableStreamToString(stream: ReadableStream) {
const chunks = <Uint8Array[]>[]
for await (const chunk of stream) chunks.push(chunk)

// @ts-ignore this is intentional, it works
return Buffer.from(Buffer.concat(chunks)).toString()
}

0 comments on commit 18d4676

Please sign in to comment.