Prevent double / in path

This commit is contained in:
Zoe Roux 2024-04-29 22:27:35 +02:00
parent 3665070b97
commit 5f20d9102f
No known key found for this signature in database

View File

@ -64,6 +64,7 @@ export const queryFn = async <Parser extends z.ZodTypeAny>(
) )
.filter((x) => x) .filter((x) => x)
.join("/") .join("/")
.replace("//", "/")
.replace("/?", "?"); .replace("/?", "?");
let resp; let resp;
try { try {