You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
Fix return_buffers in pub/sub mode (#911)
This commit is contained in:
2
index.js
2
index.js
@@ -645,7 +645,7 @@ RedisClient.prototype.return_reply = function (reply) {
|
|||||||
}
|
}
|
||||||
} else if (this.pub_sub_mode || command_obj && command_obj.sub_command) {
|
} else if (this.pub_sub_mode || command_obj && command_obj.sub_command) {
|
||||||
if (Array.isArray(reply)) {
|
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);
|
reply = utils.reply_to_strings(reply);
|
||||||
}
|
}
|
||||||
type = reply[0].toString();
|
type = reply[0].toString();
|
||||||
|
Reference in New Issue
Block a user