0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-06 22:10:10 -05:00

[ci] format

This commit is contained in:
Arsh 2024-02-07 16:10:36 +00:00 committed by astrobot-houston
parent 0699f34d5c
commit 9836dddf82

View file

@ -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];