Skip to content

Commit

Permalink
🆙 read-all-stream to 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
floatdrop committed Jan 19, 2015
1 parent c05add5 commit 93b6b78
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 93b6b78

Please sign in to comment.