Skip to content

Commit

Permalink
Merge pull request #1269 from PopPopRet/master
Browse files Browse the repository at this point in the history
fix upload error
  • Loading branch information
2betop authored Aug 6, 2018
2 parents 2c006ab + 16819d7 commit bf092d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -1268,6 +1268,9 @@ _.upload = function(url, opt, data, content, subpath, callback) {
callback(err.message || err);
});
});
req.on('error', function(err) {
callback(err.message || err);
});
collect.forEach(function(d) {
req.write(d);
});
Expand Down

0 comments on commit bf092d5

Please sign in to comment.