chenzhangyi commented on a change in pull request #1620:
URL: https://github.com/apache/incubator-brpc/pull/1620#discussion_r760199710
##########
File path: src/brpc/policy/http_rpc_protocol.cpp
##########
@@ -1146,13 +1146,13 @@ ParseResult ParseHttpMessage(butil::IOBuf *source,
Socket *socket,
return MakeParseError(PARSE_ERROR_NOT_ENOUGH_DATA);
}
// Send 400 back.
- butil::IOBuf bad_req;
+ butil::IOBuf bad_resp;
Review comment:
The variable name should be bad_req, which indicates that the response
content is 'Bad Request', rather than a 'bad' response.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]