serverglen commented on issue #1610:
URL: https://github.com/apache/incubator-brpc/issues/1610#issuecomment-975191596
> > > > ```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
>
> 请问一下,这个在后续迭代中有计划要升级吗?
我理解可以在框架中兼容下,你要是着急的话,可以自己先改,然后提个PR。
--
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]