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');
|
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];
|
||||||
|
|
Loading…
Reference in a new issue