feat: include query params in server-to-app request mapping

This commit is contained in:
Codex
2026-02-18 12:54:37 +00:00
parent 8be203fb91
commit 2fa4f62632
2 changed files with 5 additions and 1 deletions

View File

@@ -30,9 +30,11 @@ function normalizeHeaders(rawHeaders) {
function mapToAppRequest({ req, rawBody }) {
const url = new URL(req.url, "http://localhost");
const query = Object.fromEntries(url.searchParams.entries());
return {
method: req.method || "GET",
path: url.pathname,
query,
headers: normalizeHeaders(req.headers),
rawBody,
};