Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6.0.0 Release notes #96

geek opened this issue Jul 1, 2015 · 0 comments


Copy link

@geek geek commented Jul 1, 2015


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('', function (err, res, payload) {

    // handle err if exists

    payload = Buffer.isBuffer(payload) ? payload.toString() : payload;
@geek geek self-assigned this Jul 1, 2015
@geek geek added this to the 6.0.0 milestone Jul 1, 2015
@geek geek closed this Jul 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.