Skip to content

Commit

Permalink
Merge pull request #1 from Come2Daddy/progressCallback-returns-url
Browse files Browse the repository at this point in the history
Adding url to progressCallback result
  • Loading branch information
Come2Daddy authored Aug 16, 2016
2 parents 4622468 + 3f40ab3 commit 2740630
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/httpreq.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ function doRequest (o, callback) {
currentsize += chunk.length;

o.progressCallback (null, {
url: o.url,
totalsize: totalsize,
currentsize: currentsize,
percentage: currentsize * 100 / totalsize
Expand Down

0 comments on commit 2740630

Please sign in to comment.