Skip to content

Commit df90e6d

Browse files
ascorbicastrobot-houston
authored andcommitted
[ci] format
1 parent bbf1d88 commit df90e6d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

packages/astro/src/vite-plugin-astro-server/response.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import type { ModuleLoader } from '../core/module-loader/index.js';
66
import { Readable } from 'node:stream';
77
import { getSetCookiesFromResponse } from '../core/cookies/index.js';
88
import { getViteErrorPayload } from '../core/errors/dev/index.js';
9-
import notFoundTemplate from '../template/4xx.js';
109
import { redirectTemplate } from '../core/routing/3xx.js';
10+
import notFoundTemplate from '../template/4xx.js';
1111

1212
export async function handle404Response(
1313
origin: string,
@@ -54,7 +54,11 @@ export function writeHtmlResponse(res: http.ServerResponse, statusCode: number,
5454
res.end();
5555
}
5656

57-
export function writeRedirectResponse(res: http.ServerResponse, statusCode: number, location: string) {
57+
export function writeRedirectResponse(
58+
res: http.ServerResponse,
59+
statusCode: number,
60+
location: string,
61+
) {
5862
const html = redirectTemplate({ status: statusCode, location });
5963
res.writeHead(statusCode, {
6064
Location: location,

packages/astro/test/dev-routing.test.js

-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ describe('Development Routing', () => {
6060
assert.equal(response.headers.get('Location'), '/');
6161
});
6262

63-
6463
it('404 when loading invalid dynamic route', async () => {
6564
const response = await fixture.fetch('/2');
6665
assert.equal(response.status, 404);

0 commit comments

Comments
 (0)