Server: Add direct_passthrough for faster file serving

- FileResponse with direct_passthrough=True bypasses buffering
- Should improve file download speeds
This commit is contained in:
SashegDev
2026-05-07 17:54:03 +00:00
parent d39b40053a
commit fba944b4b8
+1 -1
View File
@@ -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)
# ====================== ЭНДПОИНТЫ ДЛЯ ЛАУНЧЕРА ======================