diff --git a/src/index.ts b/src/index.ts index db8c1b7..3855918 100644 --- a/src/index.ts +++ b/src/index.ts @@ -213,6 +213,7 @@ async function handle_get(request: Request, bucket: R2Bucket): Promise const rangeStream = new ReadableStream({ async start(controller) { for (const [start, end] of r) { + // The privous 404 response has already handled, so it can't be null here. const object = (await bucket.get(resource_path, { range: { offset: start, length: end - start + 1 }, }))!;