You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2021/04/23 09:57:59 UTC

[GitHub] [servicecomb-java-chassis] tiger-super commented on issue #2359: standalone和servlet两种模式下的HttpServerFilter

tiger-super commented on issue #2359:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2359#issuecomment-825546377


   > 实现 httpServerFileter的时候,注意实现 `needCacheRequest` 方法, 返回 true,并显示的读取流 `getInputSteam`,然后流的内容会缓存到bodyBuffer里面。 servlet的流只能读取一次,需要显示的缓存,避免多次读取。
   
   请问一下这个报文怎么改,因为是发过来的是xml我想转成json格式,目前我是这样实现,发现不行controller接收到还是xml
   ![image](https://user-images.githubusercontent.com/32871618/115854969-59c61680-a45d-11eb-9c35-eecc6b3c77f4.png)
   


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org