yhs0092 opened a new issue, #3435: URL: https://github.com/apache/servicecomb-java-chassis/issues/3435
Java-Chassis 1.3 版本分支使用`org.apache.servicecomb.swagger.invocation.response.Headers`类型表示 HTTP header, 这个类里使用 HashMap 存储 header, 因此是区分 header 大小写的. 但根据HTTP协议的定义, header name 应该是大小写不敏感的. 这个问题在 HTTP/2 协议场景下会更容易触发. 因为通常业务的 consumer 和 provider 使用同一个常量表示 header name, 在 HTTP/1.1 协议下, Vert.x/Netty 传输 header 时没有转换大小写, 因此对端可以将 header 原模原样地取出来. 但是在 HTTP/2 协议下, Vert.x/Netty 会将业务设置的 header name 转成全小写的, 如果业务用首字母大写的 header name 去读写header, 就会取不到它. 此问题在 2.x 版本分支已经修过, 见 https://github.com/apache/servicecomb-java-chassis/pull/2096 能否将它同步到 1.3 分支呢? -- 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]
