1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

fix: messageBuffers is now handled properly again

This commit is contained in:
Ruben Bridgewater
2017-05-28 08:32:38 +02:00
parent b2e18344d9
commit 6796f8806a
3 changed files with 5 additions and 3 deletions

View File

@@ -139,7 +139,7 @@ function warn (client, msg) {
* @returns {string|number|null|Buffer|any[]|object}
*/
function handleReply (client, reply, command) {
if (client._options.detectBuffers === true && command.bufferArgs === false) { // client.messageBuffers
if (client._options.detectBuffers === true && command.bufferArgs === false || client.messageBuffers === true) {
reply = replyToStrings(reply)
}