This is an automated email from the ASF dual-hosted git repository.
wwbmmm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git
The following commit(s) were added to refs/heads/master by this push:
new 26c24ce8 fix a typo in grpc protocol (#1924)
26c24ce8 is described below
commit 26c24ce8fe4b3a922c24885364ea31ec2485909a
Author: bbbezxcy <[email protected]>
AuthorDate: Thu Sep 15 18:50:51 2022 +0800
fix a typo in grpc protocol (#1924)
* fix a typo in grpc protocol
* ERESPONSE->EREQUEST
Co-authored-by: 薛传宇 <[email protected]>
---
src/brpc/policy/http_rpc_protocol.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/brpc/policy/http_rpc_protocol.cpp
b/src/brpc/policy/http_rpc_protocol.cpp
index 22b79ca9..7ae08cb7 100644
--- a/src/brpc/policy/http_rpc_protocol.cpp
+++ b/src/brpc/policy/http_rpc_protocol.cpp
@@ -1457,7 +1457,7 @@ void ProcessHttpRequest(InputMessageBase *msg) {
if (is_grpc_ct) {
bool grpc_compressed = false;
if (!RemoveGrpcPrefix(&req_body, &grpc_compressed)) {
- cntl->SetFailed(ERESPONSE, "Invalid gRPC response");
+ cntl->SetFailed(EREQUEST, "Invalid gRPC request");
return;
}
if (grpc_compressed) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]