Created
November 2, 2021 09:37
-
-
Save CHARITH1995/87a5067cc14b846720712ede4e515e05 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
response = s3client.put_object( | |
Body=gz_body.getvalue(), | |
Bucket=bucket_name, | |
Key=s3_path, | |
ContentType='text/plain', # the original type | |
ContentEncoding='gzip', # MUST have or browsers will error | |
ACL='public-read' | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment