You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All of the Wreck shortcuts for get, post, put, or delete now work as documented in regards to the value they pass for payload to the callback. Previously, buffer values for payload were converted to strings.
Upgrade Steps
Update any callback functions for get, post, put, or delete to convert the payload value to a string from a buffer if the value was being treated as a string previously.
For example:
Wreck.get('http://hapijs.com', function (err, res, payload) {
// handle err if exists
payload = Buffer.isBuffer(payload) ? payload.toString() : payload;
});
The text was updated successfully, but these errors were encountered:
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
lockbot
locked as resolved and limited conversation to collaborators
Jan 9, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Overview
All of the Wreck shortcuts for
get
,post
,put
, ordelete
now work as documented in regards to the value they pass forpayload
to the callback. Previously, buffer values forpayload
were converted to strings.Upgrade Steps
Update any callback functions for
get
,post
,put
, ordelete
to convert thepayload
value to a string from a buffer if the value was being treated as a string previously.For example:
The text was updated successfully, but these errors were encountered: