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'); res.end('Forbidden');
return; return;
} }
locals = typeof localsHeader === 'string' locals =
? JSON.parse(localsHeader) typeof localsHeader === 'string' ? JSON.parse(localsHeader) : JSON.parse(localsHeader[0]);
: JSON.parse(localsHeader[0]);
} }
// hide the secret from the rest of user code // hide the secret from the rest of user code
delete req.headers[ASTRO_MIDDLEWARE_SECRET_HEADER]; delete req.headers[ASTRO_MIDDLEWARE_SECRET_HEADER];