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:
+1
-1
@@ -754,7 +754,7 @@ async def get_pack_file(pack_name: str, file_path: str, request: Request):
|
|||||||
size=full_path.stat().st_size,
|
size=full_path.stat().st_size,
|
||||||
client_ip=client_ip)
|
client_ip=client_ip)
|
||||||
|
|
||||||
return FileResponse(full_path)
|
return FileResponse(full_path, direct_passthrough=True)
|
||||||
|
|
||||||
|
|
||||||
# ====================== ЭНДПОИНТЫ ДЛЯ ЛАУНЧЕРА ======================
|
# ====================== ЭНДПОИНТЫ ДЛЯ ЛАУНЧЕРА ======================
|
||||||
|
|||||||
Reference in New Issue
Block a user