Skip to content

Commit

Permalink
chore: change headers to standard (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
drazisil-codecov committed Jun 23, 2021
1 parent 69e3064 commit e1fb76a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/helpers/web.js
Expand Up @@ -65,10 +65,10 @@ async function uploadToCodecov(uploadURL, token, query, uploadFile, version) {
.post(`${uploadURL}/upload/v4?package=uploader-${version}&${query}`)
.retry()
.send(uploadFile)
.set('X-Reduced-Redundancy', 'false')
.set('X-Content-Type', 'text/plain')
.set('X-Content-Encoding', 'gzip')
.set('Content-Type', 'text/plain')
.set('Content-Encoding', 'gzip')
.set('X-Upload-Token', token)
.set('X-Reduced-Redundancy', 'false')

return result.res.text
} catch (error) {
Expand Down

0 comments on commit e1fb76a

Please sign in to comment.