From de51fcf8879d066f26ee3dc24dc60a2bdcffb06c Mon Sep 17 00:00:00 2001 From: Hay1tsme Date: Thu, 23 May 2024 14:16:35 -0400 Subject: [PATCH] fix name lookup --- index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.py b/index.py index 72ea095..3aeb927 100644 --- a/index.py +++ b/index.py @@ -86,7 +86,7 @@ async def handle_file(request: Request) -> FileResponse: if not name or not key: return Response(status_code=400) - info: Dict = flist.get("name", {}) + info: Dict = flist.get(name, {}) if not info: return Response(status_code=404)