From 93b6b7815f29657d7a105e7006ebc9e038b2232a Mon Sep 17 00:00:00 2001 From: Vsevolod Strukchinsky Date: Mon, 19 Jan 2015 12:28:36 +0500 Subject: [PATCH] :up: read-all-stream to 1.0.0 --- index.js | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 4154ce3..3e31d13 100644 --- a/index.js +++ b/index.js @@ -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) { diff --git a/package.json b/package.json index e69a84d..c7c9aa0 100644 --- a/package.json +++ b/package.json @@ -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": {