This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


The following commit(s) were added to refs/heads/main by this push:
     new a2f31cb  Ensure that published files are downloaded rather than 
rendered
a2f31cb is described below

commit a2f31cbaac109bc70aeab24ccb5063cb205a9192
Author: Sean B. Palmer <[email protected]>
AuthorDate: Mon Dec 29 16:55:13 2025 +0000

    Ensure that published files are downloaded rather than rendered
---
 atr/get/published.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/atr/get/published.py b/atr/get/published.py
index 2213b5d..cce3185 100644
--- a/atr/get/published.py
+++ b/atr/get/published.py
@@ -96,7 +96,12 @@ async def _directory_listing_pre(full_path: pathlib.Path, 
current_path: str, pre
 
 
 async def _file_content(full_path: pathlib.Path) -> web.QuartResponse:
-    return await quart.send_file(full_path)
+    return await quart.send_file(
+        full_path,
+        as_attachment=True,
+        attachment_filename=full_path.name,
+        mimetype="application/octet-stream",
+    )
 
 
 async def _path(session: web.Committer, path: str) -> web.QuartResponse:


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to