Skip to content

Commit

Permalink
Merge pull request #34 from floatdrop/master
Browse files Browse the repository at this point in the history
Up read-all-stream to 1.0.0
  • Loading branch information
sindresorhus committed Jan 19, 2015
2 parents c05add5 + 93b6b78 commit c7f3795
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ function got(url, opts, cb) {
return;
}

read(res, encoding, cb, response);
read(res, encoding, function (err, data) {
cb.call(null, err, data, response);
});
}).once('error', cb);

if (opts.timeout) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"is-stream": "^1.0.0",
"object-assign": "^2.0.0",
"prepend-http": "^1.0.0",
"read-all-stream": "^0.1.0",
"read-all-stream": "^1.0.0",
"timed-out": "^2.0.0"
},
"devDependencies": {
Expand Down

0 comments on commit c7f3795

Please sign in to comment.