mirror of
https://github.com/withastro/astro.git
synced 2025-03-10 23:01:26 -05:00
[ci] format
This commit is contained in:
parent
f4b41c6bba
commit
ca1f104ece
1 changed files with 2 additions and 2 deletions
|
@ -42,9 +42,9 @@ export function createExports(manifest: SSRManifest) {
|
|||
async function writeWebResponse(app: NodeApp, res: ServerResponse, webResponse: Response) {
|
||||
const { status, headers, body } = webResponse;
|
||||
|
||||
if(app.setCookieHeaders) {
|
||||
if (app.setCookieHeaders) {
|
||||
const setCookieHeaders: Array<string> = Array.from(app.setCookieHeaders(webResponse));
|
||||
if(setCookieHeaders.length) {
|
||||
if (setCookieHeaders.length) {
|
||||
res.setHeader('Set-Cookie', setCookieHeaders);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue