From fba944b4b84b1b9444c79c09f6723bb6d7dad55d Mon Sep 17 00:00:00 2001 From: SashegDev Date: Thu, 7 May 2026 17:54:03 +0000 Subject: [PATCH] Server: Add direct_passthrough for faster file serving - FileResponse with direct_passthrough=True bypasses buffering - Should improve file download speeds --- server/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/main.py b/server/main.py index 45e1ef2..0a701da 100644 --- a/server/main.py +++ b/server/main.py @@ -754,7 +754,7 @@ async def get_pack_file(pack_name: str, file_path: str, request: Request): size=full_path.stat().st_size, client_ip=client_ip) - return FileResponse(full_path) + return FileResponse(full_path, direct_passthrough=True) # ====================== ЭНДПОИНТЫ ДЛЯ ЛАУНЧЕРА ======================