mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
[ci] format
This commit is contained in:
parent
0699f34d5c
commit
9836dddf82
1 changed files with 2 additions and 3 deletions
|
@ -32,9 +32,8 @@ export const createExports = (
|
|||
res.end('Forbidden');
|
||||
return;
|
||||
}
|
||||
locals = typeof localsHeader === 'string'
|
||||
? JSON.parse(localsHeader)
|
||||
: JSON.parse(localsHeader[0]);
|
||||
locals =
|
||||
typeof localsHeader === 'string' ? JSON.parse(localsHeader) : JSON.parse(localsHeader[0]);
|
||||
}
|
||||
// hide the secret from the rest of user code
|
||||
delete req.headers[ASTRO_MIDDLEWARE_SECRET_HEADER];
|
||||
|
|
Loading…
Reference in a new issue