From 15cc0c4da218a375cadc67e541a99fdc6c5083f2 Mon Sep 17 00:00:00 2001 From: Blacker1230 Date: Fri, 1 Apr 2022 17:41:57 +0800 Subject: fix binary protocol's first byte value. --- doc/specs/thrift-rpc.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/specs/thrift-rpc.md b/doc/specs/thrift-rpc.md index fbff3b6a1..a18d10400 100644 --- a/doc/specs/thrift-rpc.md +++ b/doc/specs/thrift-rpc.md @@ -151,7 +151,7 @@ always slightly faster. ## Compatibility A server could automatically determine whether a client talks the binary protocol or the compact protocol by -investigating the first byte. If the value is `1000 0001` or `0000 0000` (assuming a name shorter than ±16 MB) it is the +investigating the first byte. If the value is `1000 0000` or `0000 0000` (assuming a name shorter than ±16 MB) it is the binary protocol. When the value is `1000 0010` it is talking the compact protocol. ## Framed vs. unframed transport -- cgit v1.2.1