diff --git a/app.py b/app.py index 628a7b5..3b76c9b 100644 --- a/app.py +++ b/app.py @@ -510,9 +510,9 @@ def sanitize_filename(filename: str, base: Path = Path.cwd().resolve()) -> Path: async def static(request, fn): try: path = sanitize_filename(fn, Path("static/").resolve()) - return ( - HTTPResponse(request, "", content_type="application/octet-stream") - + path.read_bytes() + + return HTTPResponse( + request, path.read_bytes(), content_type="application/octet-stream" ) except Exception: return HTTPResponse(request, "404 File Not Found", status=404) diff --git a/libs b/libs index 014cdd8..4e04784 160000 --- a/libs +++ b/libs @@ -1 +1 @@ -Subproject commit 014cdd80e221918db3f2d25c66f9e75592f9074e +Subproject commit 4e04784f9b83a85f29c899c672d261e8e763ed9a