Sayaka617 commented on issue #3850:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/3850#issuecomment-1622890525

   经过分析,参考org.apache.catalina.connector.Response#setContentType
   最终实际调用方法为
   ```java
       public void setContentTypeNoCharset(String type) {
           this.contentType = type;
       }
   ```
   在设置content-type时进行了特殊处理,并不会添加至header,而是设置this.contentType=contentType;
   
因此在org.apache.servicecomb.foundation.vertx.http.DownloadUtils#prepareDownloadHeader中获取时,应当尝试使用get方法,我将验证后提出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]

Reply via email to