Skip to content

Commit aea03d6

Browse files
committed
Fixed exec result arrays being stringed in detect_buffers mode
1 parent f384d1c commit aea03d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ RedisClient.prototype.return_reply = function (reply) {
672672

673673
if (command_obj && !command_obj.sub_command) {
674674
if (typeof command_obj.callback === "function") {
675-
if (this.options.detect_buffers && command_obj.buffer_args === false) {
675+
if (this.options.detect_buffers && command_obj.buffer_args === false && 'exec' !== command_obj.command.toLowerCase()) {
676676
// If detect_buffers option was specified, then the reply from the parser will be Buffers.
677677
// If this command did not use Buffer arguments, then convert the reply to Strings here.
678678
reply = reply_to_strings(reply);

0 commit comments

Comments
 (0)