Auto merge of #26981 - servo:jdm-patch-45-1, r=Manishearth

Set Content-Type for sha256 uploads.

Based on https://github.com/boto/boto3/issues/548#issuecomment-200450364.
This commit is contained in:
bors-servo 2020-06-19 03:03:00 -04:00 committed by GitHub
commit 9610fbcbeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()