Skip to content

Commit

Permalink
fix a typo in grpc protocol (#1924)
Browse files Browse the repository at this point in the history
* fix a typo in grpc protocol

* ERESPONSE->EREQUEST

Co-authored-by: 薛传宇 <xuechuanyu@cmss.chinamobile.com>
  • Loading branch information
opheliaKyouko and 薛传宇 authored Sep 15, 2022
1 parent bb36eb2 commit 26c24ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/brpc/policy/http_rpc_protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 26c24ce

Please sign in to comment.