Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #121 from JrGoodle/encoding
Browse files Browse the repository at this point in the history
Encode s3 upload data as utf8
  • Loading branch information
Steve Peak committed Dec 18, 2017
2 parents adf750d + e03313e commit bc70732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codecov/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ def main(*argv, **kwargs):
result, upload_url = res[0], res[1]

write(' Uploading to S3...')
s3 = requests.put(upload_url, data=reports,
s3 = requests.put(upload_url, data=reports.encode('utf-8'),
headers={'Content-Type': 'text/plain',
'x-amz-acl': 'public-read'})
s3.raise_for_status()
Expand Down

0 comments on commit bc70732

Please sign in to comment.