Give time for MinIO to respond when transferring large files.

This commit is contained in:
Lutchy Horace 2025-04-02 12:40:51 -04:00
parent 619994c81e
commit 3d80586e26

View file

@ -63,7 +63,7 @@ async def proxy_request(path: str, request: Request):
return Response(content=error_xml, status_code=403, media_type="application/xml")
# Proxy request to MinIO
async with httpx.AsyncClient() as client:
async with httpx.AsyncClient(timeout=300.0) as client:
minio_url = f"{MINIO_ENDPOINT}/{path}"
headers = dict(request.headers)
body = await request.body()