@ -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) {
@ -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": {