fix: properly decode path to support all special unicode characters

This commit is contained in:
Nicolas Meienberger
2025-11-21 18:25:27 +01:00
parent 518700eef6
commit 043f73ea87
2 changed files with 4 additions and 3 deletions

View File

@@ -123,7 +123,8 @@ export const repositoriesController = new Hono()
const { name, snapshotId } = c.req.param();
const { path } = c.req.valid("query");
const result = await repositoriesService.listSnapshotFiles(name, snapshotId, path);
const decodedPath = path ? decodeURIComponent(path) : undefined;
const result = await repositoriesService.listSnapshotFiles(name, snapshotId, decodedPath);
c.header("Cache-Control", "max-age=300, stale-while-revalidate=600");