diff options
author | 2024-10-07 14:28:00 +0000 | |
---|---|---|
committer | 2024-10-07 14:28:00 +0000 | |
commit | b28bd74087eee140c65ff937c3b0e51e9e4ef46c (patch) | |
tree | 76c6fb19468b8ed5d50556448ae1d35a1138f3db | |
parent | 9db755ab7cfe658ec426387e297bdcd32c4bc8de (diff) | |
download | astro-b28bd74087eee140c65ff937c3b0e51e9e4ef46c.tar.gz astro-b28bd74087eee140c65ff937c3b0e51e9e4ef46c.tar.zst astro-b28bd74087eee140c65ff937c3b0e51e9e4ef46c.zip |
[ci] format
-rw-r--r-- | packages/astro/src/core/app/node.ts | 2 | ||||
-rw-r--r-- | packages/astro/src/vite-plugin-astro-server/response.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/astro/src/core/app/node.ts b/packages/astro/src/core/app/node.ts index 60d2ac70d..f8ee39791 100644 --- a/packages/astro/src/core/app/node.ts +++ b/packages/astro/src/core/app/node.ts @@ -1,12 +1,12 @@ import fs from 'node:fs'; import type { IncomingMessage, ServerResponse } from 'node:http'; +import { Http2ServerResponse } from 'node:http2'; import type { RouteData } from '../../@types/astro.js'; import { deserializeManifest } from './common.js'; import { createOutgoingHttpHeaders } from './createOutgoingHttpHeaders.js'; import { App } from './index.js'; import type { RenderOptions } from './index.js'; import type { SSRManifest, SerializedSSRManifest } from './types.js'; -import { Http2ServerResponse } from 'node:http2'; export { apply as applyPolyfills } from '../polyfill.js'; diff --git a/packages/astro/src/vite-plugin-astro-server/response.ts b/packages/astro/src/vite-plugin-astro-server/response.ts index 0dd3e1ff8..a6257508e 100644 --- a/packages/astro/src/vite-plugin-astro-server/response.ts +++ b/packages/astro/src/vite-plugin-astro-server/response.ts @@ -69,7 +69,7 @@ export async function writeWebResponse(res: http.ServerResponse, webResponse: Re _headers['set-cookie'] = headers.getSetCookie(); } // HTTP/2 doesn't support statusMessage - if(!(res instanceof Http2ServerResponse)) { + if (!(res instanceof Http2ServerResponse)) { res.statusMessage = statusText; } res.writeHead(status, _headers); |