This commit is contained in:
Timothy Jaeryang Baek committed 2026-08-05 07:14:46 -05:00
1 parent 8de0fcee14
commit a7bce2db5b
20 files changed
+239 -222

No files matched your search

+1 -1
View File
@@ -118,7 +118,7 @@ async def send_file(request: Request, path: str, *, download: bool = False):
)
try:
result = await Runtime.stream_file(identity, path)
result = await Runtime.stream_file(request, path)
except FileError as exc:
raise HTTPException(status_code=exc.status_code, detail=str(exc)) from exc
headers = {"Content-Length": str(result["size"])}