diff --git a/plugins/http/guest-js/index.ts b/plugins/http/guest-js/index.ts index 037d3b12..0350224a 100644 --- a/plugins/http/guest-js/index.ts +++ b/plugins/http/guest-js/index.ts @@ -234,7 +234,7 @@ export async function fetch( } const readChunk = async ( - controller: ReadableStreamDefaultController + controller: ReadableStreamDefaultController ) => { let data: ArrayBuffer try { @@ -261,7 +261,7 @@ export async function fetch( controller.enqueue(actualData) } - const readableStreamBody = new ReadableStream({ + const readableStreamBody = new ReadableStream({ start: (controller) => { // abort early here if needed and drop the body if (signal?.aborted) {