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