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/11/12 09:36:15 UTC

[GitHub] [servicecomb-java-chassis] liubao68 edited a comment on issue #2620: 使用官方文档的推荐方式写文件下载接口,客户端为go服务时会报错

liubao68 edited a comment on issue #2620:
URL: https://github.com/apache/servicecomb-java-chassis/issues/2620#issuecomment-966953857


   根据HTTP协议, 允许一个header重复多次,但是前提是header的值,是逗号分隔的值。 所以对于transfer-encoding来讲, 不允许出现两个值是合理的。 go的安全检查是合理的。 
   
   所以问题的关键是要看 transfer-encoding 这个头在 tomcat 场景下, 是java-chassis先添加还是tomcat先添加(从上面描述应该是java-chassis), 后添加的服务需要移除已有的header。 
   
   从这个角度看, 我理解tomcat修改是比较合理的。 
   
   当然你的规避措施如果可以保证tomcat任何时候都能够正确的添加这个头, “ 在使用方式为servlet时,不添加此请求头”, 我感觉也是合理的。


-- 
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: commits-unsubscribe@servicecomb.apache.org

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