This is an automated email from the ASF dual-hosted git repository. akm pushed a commit to branch file-downloads-comment-714 in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
commit 82af2b6f0576cdaf2b066b226773c7305097ca64 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]
