From fdba5f344fc63802f1d1e7821b0da83d39f666ae Mon Sep 17 00:00:00 2001 From: Matt Kane Date: Thu, 3 Oct 2024 08:21:59 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/runtime/server/endpoint.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/astro/src/runtime/server/endpoint.ts b/packages/astro/src/runtime/server/endpoint.ts index 473cae180d6f..a8f9403fe824 100644 --- a/packages/astro/src/runtime/server/endpoint.ts +++ b/packages/astro/src/runtime/server/endpoint.ts @@ -66,7 +66,7 @@ export async function renderEndpoint( // This is the case if, for example, the user directly returns a `fetch` response // There's no clean way to check if the headers are immutable, so we just catch the error // Note that response.clone() still has immutable headers! - if((err as Error).message?.includes('immutable')) { + if ((err as Error).message?.includes('immutable')) { response = new Response(response.body, response); response.headers.set(REROUTE_DIRECTIVE_HEADER, 'no'); } else {