diff options
Diffstat (limited to 'src/resp_parser.rs')
| -rw-r--r-- | src/resp_parser.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resp_parser.rs b/src/resp_parser.rs index bbea0ea..0313679 100644 --- a/src/resp_parser.rs +++ b/src/resp_parser.rs @@ -535,7 +535,8 @@ impl RespType { // work format!("*{:?}\r\n{:?}", len, elements).into_bytes() } - RespType::Null() => b"_\r\n".into(), + // this is just a hack because the platform uses RESP2 in RESP3 it should be "_\r\n" + RespType::Null() => b"$-1\r\n".into(), RespType::Boolean(b) => format!("#{}\r\n", if *b { "t" } else { "f" }).into_bytes(), RespType::Doubles(d) => format!(",{}\r\n", d).into_bytes(), RespType::BigNumbers(n) => format!("({}\r\n", n).into_bytes(), |
