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

Fix return_buffers in pub/sub mode (#911)

This commit is contained in:
Anton Nesterov
2015-10-30 16:08:28 +03:00
parent 2cc01f52b6
commit cc93e0b3a7

View File

@@ -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();