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 2019/08/01 09:44:53 UTC

[GitHub] [servicecomb-java-chassis] yhs0092 commented on issue #1286: 下载接口在返回请求头中设置Content-Length,但是通过edge调用该接口,返回请求头中没有Content-Length

yhs0092 commented on issue #1286: 下载接口在返回请求头中设置Content-Length,但是通过edge调用该接口,返回请求头中没有Content-Length
URL: https://github.com/apache/servicecomb-java-chassis/issues/1286#issuecomment-517211687
 
 
   ServiceComb-Java-Chassis并不会去掉`Content-Length`头,而是根据用户返回的消息自动进行了设置,我们不建议用户自行设置Content-Length。下载文件接口返回的结果通常会被设置为分块传输的,可以看看你抓到的响应里是不是有`Transfer-Encoding: chunked`这样的header

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


With regards,
Apache Git Services