fangsir0 opened a new issue, #4879:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4879

   ### Steps to Reproduce
   
   1. 发送http请求,http header如下:
   ```
       'Content-Encoding': 'gzip',
       'Content-Type': 'application/json',
   ```
   2. 请求发送到服务器端,未能正确先解压gzip,导致报错:
   ```
   Parameter is [queryReq]. Processor is [body]. Message is [Illegal character 
((CTRL-CHAR, code 31)): only regular white space (\\r, \\n, \\t) is allowed 
between tokens\n at [Source: REDACTED 
(`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 
2]]."}
   ```
   3. 只有尝试将http请求的header修改为如下的时候,才不会报错:
   ```
       'Content-Encoding': 'gzip',
       'Content-Type': 'application/gzip',
   ```
   查找一些资料显示,Content-Type 
表示标头用于指示资源的原始[媒体类型](https://developer.mozilla.org/zh-CN/docs/Glossary/MIME_type)(在发送时应用任何内容编码之前);写成`'Content-Type':
 'application/gzip'`也不正确了,原始内容是json格式的body
   
   ### Expected Behavior
   
   _No response_
   
   ### Servicecomb Version
   
   _No response_
   
   ### Additional Context
   
   _No response_


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