fix name lookup
This commit is contained in:
parent
4bab07edbd
commit
de51fcf887
2
index.py
2
index.py
@ -86,7 +86,7 @@ async def handle_file(request: Request) -> FileResponse:
|
|||||||
if not name or not key:
|
if not name or not key:
|
||||||
return Response(status_code=400)
|
return Response(status_code=400)
|
||||||
|
|
||||||
info: Dict = flist.get("name", {})
|
info: Dict = flist.get(name, {})
|
||||||
if not info:
|
if not info:
|
||||||
return Response(status_code=404)
|
return Response(status_code=404)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user