diff --git a/src/t_zset.cpp b/src/t_zset.cpp index 456348e10..f5047be9f 100644 --- a/src/t_zset.cpp +++ b/src/t_zset.cpp @@ -2665,7 +2665,10 @@ void genericZrangebyscoreCommand(client *c, int reverse) { /* No "first" element in the specified interval. */ if (ln == NULL) { - addReplyNull(c); + if (c->resp < 3) + addReply(c, shared.emptyarray); + else + addReplyNull(c); return; }