full site update
This commit is contained in:
8
node_modules/astro/dist/vite-plugin-astro-server/request.js
generated
vendored
8
node_modules/astro/dist/vite-plugin-astro-server/request.js
generated
vendored
@@ -5,7 +5,7 @@ import { handle500Response } from "./response.js";
|
||||
import { handleRoute, matchRoute } from "./route.js";
|
||||
async function handleRequest({
|
||||
pipeline,
|
||||
manifestData,
|
||||
routesList,
|
||||
controller,
|
||||
incomingRequest,
|
||||
incomingResponse
|
||||
@@ -17,7 +17,7 @@ async function handleRequest({
|
||||
if (config.trailingSlash === "never" && !incomingRequest.url) {
|
||||
pathname = "";
|
||||
} else {
|
||||
pathname = url.pathname;
|
||||
pathname = decodeURI(url.pathname);
|
||||
}
|
||||
url.pathname = removeTrailingForwardSlash(config.base) + url.pathname;
|
||||
let body = void 0;
|
||||
@@ -35,7 +35,7 @@ async function handleRequest({
|
||||
controller,
|
||||
pathname,
|
||||
async run() {
|
||||
const matchedRoute = await matchRoute(pathname, manifestData, pipeline);
|
||||
const matchedRoute = await matchRoute(pathname, routesList, pipeline);
|
||||
const resolvedPathname = matchedRoute?.resolvedPathname ?? pathname;
|
||||
return await handleRoute({
|
||||
matchedRoute,
|
||||
@@ -43,7 +43,7 @@ async function handleRequest({
|
||||
pathname: resolvedPathname,
|
||||
body,
|
||||
pipeline,
|
||||
manifestData,
|
||||
routesList,
|
||||
incomingRequest,
|
||||
incomingResponse
|
||||
});
|
||||
|
Reference in New Issue
Block a user