Set Content-Type for sha256 uploads.

This commit is contained in:
Josh Matthews 2020-06-19 00:43:36 -04:00 committed by GitHub
parent 8e3b4b6fe5
commit e65b4489d1
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()