File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments