Skip to content

Commit 0b5c203

Browse files
committed
remove REDUCED_REDUNDANCY
1 parent 3ad0858 commit 0b5c203

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### `2.0.9`
2+
- fix uploading when reports contain characters outside of latin-1
3+
- remove reduced_redundancy header from
4+
15
### `2.0.7`
26
- Add `--name/-n` to cli
37
- Add support for Jenkins Blue

codecov/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,8 @@ def main(*argv, **kwargs):
709709
write(' Pinging Codecov...')
710710
res = requests.post('%s/upload/v4?%s' % (codecov.url, urlargs),
711711
verify=codecov.cacert,
712-
headers={'Accept': 'text/plain'})
712+
headers={'Accept': 'text/plain',
713+
'X-Reduced-Redundancy': 'false'})
713714
if res.status_code in (400, 406):
714715
raise Exception(res.text)
715716

@@ -721,8 +722,7 @@ def main(*argv, **kwargs):
721722
write(' Uploading to S3...')
722723
s3 = requests.put(upload_url, data=reports,
723724
headers={'Content-Type': 'text/plain',
724-
'x-amz-acl': 'public-read',
725-
'x-amz-storage-class': 'REDUCED_REDUNDANCY'})
725+
'x-amz-acl': 'public-read'})
726726
s3.raise_for_status()
727727
assert s3.status_code == 200
728728
write(' ' + result)

0 commit comments

Comments
 (0)