This is an automated email from the ASF dual-hosted git repository.
rainyu pushed a commit to branch 3.3
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.3 by this push:
new 5b8e1f67af Add check for empty cookie string in decodeCookies method
(#15985)
5b8e1f67af is described below
commit 5b8e1f67af51f1f4065181c91e9d392573b8c4dc
Author: Rain Yu <[email protected]>
AuthorDate: Sun Jan 11 23:59:39 2026 +0800
Add check for empty cookie string in decodeCookies method (#15985)
Co-authored-by: heliang <[email protected]>
---
.../src/main/java/org/apache/dubbo/remoting/http12/HttpUtils.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/dubbo-remoting/dubbo-remoting-http12/src/main/java/org/apache/dubbo/remoting/http12/HttpUtils.java
b/dubbo-remoting/dubbo-remoting-http12/src/main/java/org/apache/dubbo/remoting/http12/HttpUtils.java
index d193c5a361..4f3c8b794b 100644
---
a/dubbo-remoting/dubbo-remoting-http12/src/main/java/org/apache/dubbo/remoting/http12/HttpUtils.java
+++
b/dubbo-remoting/dubbo-remoting-http12/src/main/java/org/apache/dubbo/remoting/http12/HttpUtils.java
@@ -76,6 +76,9 @@ public final class HttpUtils {
public static List<HttpCookie> decodeCookies(String value) {
List<HttpCookie> cookies = new ArrayList<>();
+ if (StringUtils.isEmpty(value)) {
+ return cookies;
+ }
for (Cookie c : ServerCookieDecoder.LAX.decodeAll(value)) {
cookies.add(new HttpCookie(c.name(), c.value()));
}