Commits

Rich Manalang [Atlassian] committed 22de812

fix issue with progress bar

Comments (0)

Files changed (1)

   https.get(dlUrl, function(res){
     var data = [], dataLen = 0;
 
-    var len = parseInt(res.headers['content-length'], 10);
+    var len = parseInt(res.headers['content-length'] || 1000, 10);
     var bar = new ProgressBar('Downloading template [:bar] :percent :etas', {
         complete: '='
       , incomplete: ' '