0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] format

This commit is contained in:
Matt Kane 2024-10-03 08:21:59 +00:00 committed by astrobot-houston
parent d3a74da196
commit fdba5f344f

View file

@ -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 {