pull/2562/head
amrbashir 2 months ago
parent fec2b7f28c
commit aa07fa0835
No known key found for this signature in database

@ -234,7 +234,7 @@ export async function fetch(
} }
const readChunk = async ( const readChunk = async (
controller: ReadableStreamDefaultController<any> controller: ReadableStreamDefaultController<Uint8Array>
) => { ) => {
let data: ArrayBuffer let data: ArrayBuffer
try { try {
@ -261,7 +261,7 @@ export async function fetch(
controller.enqueue(actualData) controller.enqueue(actualData)
} }
const readableStreamBody = new ReadableStream({ const readableStreamBody = new ReadableStream<Uint8Array>({
start: (controller) => { start: (controller) => {
// abort early here if needed and drop the body // abort early here if needed and drop the body
if (signal?.aborted) { if (signal?.aborted) {

Loading…
Cancel
Save