Skip to content

Commit e95c83c

Browse files
authored
Closes #232
1 parent ce75dd8 commit e95c83c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const example = async function () {
7575
const promise = wreck.request(method, uri, options);
7676
try {
7777
const res = await promise;
78-
const body = await Wreck.read(res);
78+
const body = await Wreck.read(res, options);
7979
console.log(body.toString());
8080
}
8181
catch (err) {
@@ -123,7 +123,6 @@ Initiate an HTTP request.
123123
- `req` - The new [ClientRequest](http://nodejs.org/api/http.html#http_class_http_clientrequest) object which replaces the one initially returned.
124124
- `timeout` - The number of milliseconds to wait without receiving a response
125125
before aborting the request. Defaults to unlimited.
126-
- `maxBytes` - maximum size for response payload. Defaults to unlimited.
127126
- `rejectUnauthorized` - [TLS](http://nodejs.org/api/tls.html) flag indicating
128127
whether the client should reject a response from a server with invalid certificates. This cannot be set at the
129128
same time as the `agent` option is set.

0 commit comments

Comments
 (0)