RESP3: Fix addReplyBool() RESP2/3 output.

This commit is contained in:
antirez
2018-12-10 12:35:28 +01:00
parent 4e2dd54df0
commit 8042afb246
2 changed files with 5 additions and 2 deletions

View File

@ -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);