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 8b22964a Adding a comment about octet-stream; fixes #714
8b22964a is described below
commit 8b22964a34c6ea1638dd50f2196296ecf128a9a7
Author: Andrew K. Musselman <[email protected]>
AuthorDate: Mon Mar 2 18:03:18 2026 -0800
Adding a comment about octet-stream; fixes #714
---
atr/get/download.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/atr/get/download.py b/atr/get/download.py
index 28120a13..830f9633 100644
--- a/atr/get/download.py
+++ b/atr/get/download.py
@@ -225,7 +225,11 @@ async def _download_or_list(project_name: str,
version_name: str, file_path: str
# Send the file with original filename
return await quart.send_file(
- full_path, as_attachment=True,
attachment_filename=validated_path.name, mimetype="application/octet-stream"
+ # audit_guidance using octet-stream for all files is intentional so
files are downloaded and not rendered
+ full_path,
+ as_attachment=True,
+ attachment_filename=validated_path.name,
+ mimetype="application/octet-stream",
)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]