Skip to content

Commit

Permalink
decode uri
Browse files Browse the repository at this point in the history
  • Loading branch information
tlgimenes committed Mar 13, 2024
1 parent c37d497 commit 4c2ddae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/realtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export class Realtime implements DurableObject {
"/volumes/:id/files/*": {
GET: async (req, { params }) => {
const volumeId = params.id;
const path = `/${params["0"]}`;
const path = decodeURI(`/${params["0"]}`);
const withContent =
new URL(req.url).searchParams.get("content") === "true";

Expand Down

0 comments on commit 4c2ddae

Please sign in to comment.