Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Add default file size as current binary size in case of Content-Length
Browse files Browse the repository at this point in the history
is unavailable.
  • Loading branch information
Skylar.Zheng committed Aug 4, 2016
1 parent b041926 commit d0d4598
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function download(url, dest, cb) {
complete: '=',
incomplete: ' ',
width: 25,
total: parseInt(response.headers['content-length'])
total: parseInt(response.headers['content-length'], 2602136)
});

response.on('data', function(chunk) {
Expand Down

0 comments on commit d0d4598

Please sign in to comment.