This is an automated email from the ASF dual-hosted git repository.

crazyhzm pushed a commit to branch 3.2
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/3.2 by this push:
     new 8a28c78d93 fix: lowerCase header (#13247)
8a28c78d93 is described below

commit 8a28c78d93c2e82ef8c5c88409cb1c0138a9af7f
Author: JYZ <[email protected]>
AuthorDate: Mon Oct 23 02:51:32 2023 -0500

    fix: lowerCase header (#13247)
    
    Co-authored-by: 贾彦昭 <[email protected]>
---
 .../apache/dubbo/rpc/protocol/rest/request/NettyRequestFacade.java    | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/dubbo-rpc/dubbo-rpc-rest/src/main/java/org/apache/dubbo/rpc/protocol/rest/request/NettyRequestFacade.java
 
b/dubbo-rpc/dubbo-rpc-rest/src/main/java/org/apache/dubbo/rpc/protocol/rest/request/NettyRequestFacade.java
index 006b404766..ef8b07f4aa 100644
--- 
a/dubbo-rpc/dubbo-rpc-rest/src/main/java/org/apache/dubbo/rpc/protocol/rest/request/NettyRequestFacade.java
+++ 
b/dubbo-rpc/dubbo-rpc-rest/src/main/java/org/apache/dubbo/rpc/protocol/rest/request/NettyRequestFacade.java
@@ -77,6 +77,10 @@ public class NettyRequestFacade extends 
RequestFacade<FullHttpRequest> {
 
         List<String> values = headers.get(name);
 
+        if (values == null && name != null){
+            values = headers.get(name.toLowerCase());
+        }
+
         if (values == null || values.isEmpty()) {
             return null;
         } else {

Reply via email to