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

Commit

Permalink
update to use upload/v4 endpoint
Browse files Browse the repository at this point in the history
The `Content-Type` of `plain/text` was a mistake in v3. Fixed in v4.
  • Loading branch information
Steve Peak authored Nov 30, 2017
1 parent d58c87e commit b03a202
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/codecov.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ var sendToCodecovV3 = function(codecov_endpoint, query, upload_body, on_success,
// Direct to S3
request.post(
{
url : urlgrey(codecov_endpoint + '/upload/v3').query(query).toString(),
url : urlgrey(codecov_endpoint + '/upload/v4').query(query).toString(),
body : '',
headers : {
'Content-Type': 'text/plain',
Expand All @@ -184,7 +184,7 @@ var sendToCodecovV3 = function(codecov_endpoint, query, upload_body, on_success,
url : result.split('\n')[1],
body : upload_body,
headers : {
'Content-Type': 'plain/text',
'Content-Type': 'text/plain',
'x-amz-acl': 'public-read'
}
}, function(err, response, result){
Expand Down

0 comments on commit b03a202

Please sign in to comment.