From 7ada6280f29bad3d755706301f0482e0f3cfcf37 Mon Sep 17 00:00:00 2001 From: matthewp Date: Thu, 7 Apr 2022 19:18:48 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/vite-plugin-astro-server/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/astro/src/vite-plugin-astro-server/index.ts b/packages/astro/src/vite-plugin-astro-server/index.ts index 67f951422..7c049e5d1 100644 --- a/packages/astro/src/vite-plugin-astro-server/index.ts +++ b/packages/astro/src/vite-plugin-astro-server/index.ts @@ -49,15 +49,15 @@ async function writeWebResponse(res: http.ServerResponse, webResponse: Response) const { status, headers, body } = webResponse; let _headers = {}; - if('raw' in headers) { + if ('raw' in headers) { // Node fetch allows you to get the raw headers, which includes multiples of the same type. // This is needed because Set-Cookie *must* be called for each cookie, and can't be // concatenated together. type HeadersWithRaw = Headers & { - raw: () => Record + raw: () => Record; }; - for(const [key, value] of Object.entries((headers as HeadersWithRaw).raw())) { + for (const [key, value] of Object.entries((headers as HeadersWithRaw).raw())) { res.setHeader(key, value); } } else {