mirror of
https://github.com/fluencelabs/redis
synced 2025-06-19 04:01:22 +00:00
RESP3: Fix addReplyBool() RESP2/3 output.
This commit is contained in:
@ -612,7 +612,7 @@ void addReplyNull(client *c) {
|
||||
}
|
||||
|
||||
void addReplyBool(client *c, int b) {
|
||||
if (c->resp == 3) {
|
||||
if (c->resp == 2) {
|
||||
addReply(c, b ? shared.cone : shared.czero);
|
||||
} else {
|
||||
addReplyString(c, b ? "#t\r\n" : "#f\r\n",4);
|
||||
|
Reference in New Issue
Block a user