Fix log download Content-Type to application/octet-stream
Browser auto-download requires binary MIME type, not text/plain. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -163,7 +163,7 @@ def download_file(
|
||||
return FileResponse(
|
||||
path=str(file_path),
|
||||
filename=safe_name,
|
||||
media_type="text/plain",
|
||||
media_type="application/octet-stream",
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user