From cc93e0b3a7df4fef6205a8e09a10ad4993edbe9e Mon Sep 17 00:00:00 2001 From: Anton Nesterov Date: Fri, 30 Oct 2015 16:08:28 +0300 Subject: [PATCH] Fix return_buffers in pub/sub mode (#911) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 054d074093..ebb5cba87a 100644 --- a/index.js +++ b/index.js @@ -645,7 +645,7 @@ RedisClient.prototype.return_reply = function (reply) { } } else if (this.pub_sub_mode || command_obj && command_obj.sub_command) { if (Array.isArray(reply)) { - if (!command_obj || command_obj.buffer_args === false) { + if ((!command_obj || command_obj.buffer_args === false) && !this.options.return_buffers) { reply = utils.reply_to_strings(reply); } type = reply[0].toString();