diff --git a/src/worker.ts b/src/worker.ts index 0471566..f850293 100644 --- a/src/worker.ts +++ b/src/worker.ts @@ -34,6 +34,7 @@ const logResult = async (request: CFWRequest, result: Response) => { } const [streamForLog, streamForResult] = result.body.tee(); try { + const logResult: { data: string } = await new Response(streamForLog).json(); const logResult: { data: string } = await new Response( streamForLog ).json();