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 zero length multibulk. Passing null not an empty array
This commit is contained in:
2
index.js
2
index.js
@@ -118,7 +118,7 @@ RedisReplyParser.prototype.execute = function (incoming_buf) {
|
||||
this.multi_bulk_replies = [];
|
||||
this.state = "type";
|
||||
if (0 == this.multi_bulk_length) {
|
||||
this.send_reply([]);
|
||||
this.send_reply(null);
|
||||
}
|
||||
} else {
|
||||
this.emit("error", new Error("didn't see LF after NL reading multi bulk count"));
|
||||
|
Reference in New Issue
Block a user