Skip to content

Commit

Permalink
convert bodies back to strings for back compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Raynos committed Sep 29, 2016
1 parent 1287b92 commit 6043508
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,13 @@ RingPop.prototype.handleOrProxyAll =
keys: keysByDest[dest]
});
if ((--pending === 0 || err) && cb) {
for (var i = 0; i < responses.length; i++) {
var r = responses[i];
if (Buffer.isBuffer(r.body)) {
r.body = r.body.toString('utf8');
}
}

cb(err, responses);
cb = null;
}
Expand Down

0 comments on commit 6043508

Please sign in to comment.