Browse Source

Merge pull request #34 from floatdrop/master

Up read-all-stream to 1.0.0
http2
Sindre Sorhus 10 years ago
parent
commit
c7f3795681
  1. 4
      index.js
  2. 2
      package.json

4
index.js

@ -95,7 +95,9 @@ function got(url, opts, cb) {
return; return;
} }
read(res, encoding, cb, response); read(res, encoding, function (err, data) {
cb.call(null, err, data, response);
});
}).once('error', cb); }).once('error', cb);
if (opts.timeout) { if (opts.timeout) {

2
package.json

@ -43,7 +43,7 @@
"is-stream": "^1.0.0", "is-stream": "^1.0.0",
"object-assign": "^2.0.0", "object-assign": "^2.0.0",
"prepend-http": "^1.0.0", "prepend-http": "^1.0.0",
"read-all-stream": "^0.1.0", "read-all-stream": "^1.0.0",
"timed-out": "^2.0.0" "timed-out": "^2.0.0"
}, },
"devDependencies": { "devDependencies": {

Loading…
Cancel
Save