aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/package_commands.py
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2020-06-19 00:43:36 -0400
committerGitHub <noreply@github.com>2020-06-19 00:43:36 -0400
commite65b4489d11f079be13410f99c820fee88b63e10 (patch)
treeae35ef193c8c43231a09b7bfe64692bc6353a733 /python/servo/package_commands.py
parent8e3b4b6fe5c39a746082d1db9d5c44a1c00dc56b (diff)
downloadservo-e65b4489d11f079be13410f99c820fee88b63e10.tar.gz
servo-e65b4489d11f079be13410f99c820fee88b63e10.zip
Set Content-Type for sha256 uploads.
Diffstat (limited to 'python/servo/package_commands.py')
-rw-r--r--python/servo/package_commands.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/servo/package_commands.py b/python/servo/package_commands.py
index 1e26bdc74ca..a9e77709cfb 100644
--- a/python/servo/package_commands.py
+++ b/python/servo/package_commands.py
@@ -651,7 +651,9 @@ class PackageCommands(CommandBase):
'Key': package_upload_key,
}
s3.copy(copy_source, BUCKET, latest_upload_key)
- s3.upload_fileobj(package_hash_fileobj, BUCKET, latest_hash_upload_key)
+ s3.upload_fileobj(
+ package_hash_fileobj, BUCKET, latest_hash_upload_key, ExtraArgs={'ContentType': 'text/plain'}
+ )
def update_maven(directory):
(aws_access_key, aws_secret_access_key) = get_s3_secret()