mirror of
https://github.com/withastro/astro.git
synced 2025-02-24 22:46:02 -05:00
[ci] format
This commit is contained in:
parent
6aa660ae7a
commit
eb8bffe67a
3 changed files with 3 additions and 3 deletions
|
@ -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 = '';
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Reference in a new issue