We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c87d87 commit 0181d33Copy full SHA for 0181d33
src/utils/request.ts
@@ -130,7 +130,7 @@ export function getRequestProtocol(
130
const DOUBLE_SLASH_RE = /[/\\]{2,}/g;
131
132
export function getRequestPath(event: H3Event): string {
133
- const path = event._originalPath.replace(DOUBLE_SLASH_RE, "/");
+ const path = event._originalPath;
134
if (path.includes("?")) {
135
const [basePath, query] = path.split("?");
136
return basePath.replace(DOUBLE_SLASH_RE, "/") + "?" + query;
0 commit comments