Skip to content

Commit bc70732

Browse files
author
Steve Peak
authored
Merge pull request codecov#121 from JrGoodle/encoding
Encode s3 upload data as utf8
2 parents adf750d + e03313e commit bc70732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codecov/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ def main(*argv, **kwargs):
726726
result, upload_url = res[0], res[1]
727727

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

0 commit comments

Comments
 (0)