redo: size -> length (#16370)

This commit is contained in:
Shelley Vohr 2019-01-11 09:53:13 -08:00 committed by GitHub
parent 3cb9aadb80
commit e2b1394ad1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -221,7 +221,7 @@ async function uploadShasumFile (filePath, fileName, releaseId) {
url: uploadUrl,
headers: {
'content-type': 'text/plain',
'content-size': fs.statSync(filePath).size
'content-length': fs.statSync(filePath).size
},
file: fs.createReadStream(filePath),
name: fileName