[ci] format

This commit is contained in:
Matt Kane 2024-10-07 14:28:00 +00:00 committed by astrobot-houston
parent 9db755ab7c
commit b28bd74087
2 changed files with 2 additions and 2 deletions

View file

@ -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';

View file

@ -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);