From ffebc90842958a8e5e18cff6d5aaec9eaeb39d8a Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 10 Dec 2018 16:39:27 +0100 Subject: [PATCH] RESP3: DEBUG PROTOCOL: boolean types. --- src/debug.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/debug.c b/src/debug.c index 9029871ea..d1824dfd7 100644 --- a/src/debug.c +++ b/src/debug.c @@ -572,6 +572,10 @@ NULL * normal reply in order for blocking clients just discarding the * push reply, to actually consume the reply and continue. */ addReplyBulkCString(c,"Some real reply following the push reply"); + } else if (!strcasecmp(name,"true")) { + addReplyBool(c,1); + } else if (!strcasecmp(name,"false")) { + addReplyBool(c,0); } else { addReplyError(c,"Wrong protocol type name. Please use one of the following: string|integer|double|bignum|null|array|set|map|attrib|push|verbatim|true|false|state|err|bloberr"); }