From bf3cfa819a13736580d549cc4a56e9cbe991ff96 Mon Sep 17 00:00:00 2001 From: gimenes Date: Tue, 26 Mar 2024 20:47:38 -0300 Subject: [PATCH] remove decode --- src/realtime.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/realtime.ts b/src/realtime.ts index 1ef25cc..1fbd4f0 100644 --- a/src/realtime.ts +++ b/src/realtime.ts @@ -227,7 +227,7 @@ export class Realtime implements DurableObject { "/volumes/:id/files/*": { GET: async (req, { params }) => { const volumeId = params.id; - const path = decodeURI(`/${params["0"]}`); + const path = `/${params["0"]}`; const contentQs = new URL(req.url).searchParams.get("content"); const contentFilter: false | string = contentQs === "true" ? "/"