You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
Fixed exec result arrays being stringed in detect_buffers mode
This commit is contained in:
2
index.js
2
index.js
@@ -672,7 +672,7 @@ RedisClient.prototype.return_reply = function (reply) {
|
|||||||
|
|
||||||
if (command_obj && !command_obj.sub_command) {
|
if (command_obj && !command_obj.sub_command) {
|
||||||
if (typeof command_obj.callback === "function") {
|
if (typeof command_obj.callback === "function") {
|
||||||
if (this.options.detect_buffers && command_obj.buffer_args === false) {
|
if (this.options.detect_buffers && command_obj.buffer_args === false && 'exec' !== command_obj.command.toLowerCase()) {
|
||||||
// If detect_buffers option was specified, then the reply from the parser will be Buffers.
|
// If detect_buffers option was specified, then the reply from the parser will be Buffers.
|
||||||
// If this command did not use Buffer arguments, then convert the reply to Strings here.
|
// If this command did not use Buffer arguments, then convert the reply to Strings here.
|
||||||
reply = reply_to_strings(reply);
|
reply = reply_to_strings(reply);
|
||||||
|
Reference in New Issue
Block a user