dylanzhang edited a comment on issue #1610:
URL: https://github.com/apache/incubator-brpc/issues/1610#issuecomment-974132867
> > > ```c++
> > > if (some_condition) {
> > >
cntl->http_response().set_status_code(brpc::HTTP_STATUS_NO_CONTENT);
> > > return ;
> > > }
> > > ```
> >
> > 我这么实现也不行,body会有{}占用两个字节
>
> 那你可以尝试修改~HttpResponseSender()的实现
>
https://github.com/apache/incubator-brpc/blob/master/src/brpc/policy/http_rpc_protocol.cpp#L706
>
这个是企业应用,有官方修复版吗?这个毕竟是不符合http规范的,在实际线上使用时,下游有很多稳定性问题
--
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]