mirror of
https://github.com/withastro/astro.git
synced 2025-01-22 10:31:53 -05:00
[ci] format
This commit is contained in:
parent
9db755ab7c
commit
b28bd74087
2 changed files with 2 additions and 2 deletions
|
@ -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';
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue