Skip to content

Commit

Permalink
chore: escape question mark
Browse files Browse the repository at this point in the history
  • Loading branch information
svedova committed Mar 25, 2024
1 parent c716a9f commit 9d3c35b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/callbacks/api.ts
Expand Up @@ -60,7 +60,7 @@ export const handleApi = (
// This is what we do here:
// /api/my-path?query-param => /my-path
const requestPath =
req.url?.split(/[?#]/)[0].split("/").slice(2).join("/") || "/";
req.url?.split(/[\?#]/)[0].split("/").slice(2).join("/") || "/";

const file = matchPath(cachedFiles, requestPath, req.method);

Expand Down

0 comments on commit 9d3c35b

Please sign in to comment.