chore: s/size/length (#16351)

This commit is contained in:
Shelley Vohr 2019-01-10 10:58:23 -08:00 committed by GitHub
parent 782825fc29
commit 03e16ffa57
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, url: uploadUrl,
headers: { headers: {
'content-type': 'text/plain', 'content-type': 'text/plain',
'content-size': fs.statSync(filePath).size 'content-length': fs.statSync(filePath).size
}, },
file: fs.createReadStream(filePath), file: fs.createReadStream(filePath),
name: fileName name: fileName