mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
d3a74da196
commit
fdba5f344f
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue