Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
lilnasy authored and astrobot-houston committed Feb 23, 2024
1 parent 6aa660a commit eb8bffe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/astro/src/core/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function createRequest({
: new Headers(Object.entries(headers as Record<string, any>));

if (typeof url === 'string') url = new URL(url);

// HACK! astro:assets uses query params for the injected route in `dev`
if (removeParams && url.pathname !== '/_image') {
url.search = '';
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/src/vite-plugin-astro-server/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export async function handleRoute({
logger,
ssr: buildingToSSR,
clientAddress: buildingToSSR ? incomingRequest.socket.remoteAddress : undefined,
removeParams: buildingToSSR === false || route.prerender
removeParams: buildingToSSR === false || route.prerender,
});

// Set user specified headers to response object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe('vite-plugin-astro-server', () => {
describe('url', () => {
let container;
let settings;

before(async () => {
const root = new URL('../../fixtures/api-routes/', import.meta.url);
const fileSystem = {
Expand Down

0 comments on commit eb8bffe

Please sign in to comment.