This is an automated email from the ASF dual-hosted git repository.
reta pushed a commit to branch 3.5.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/3.5.x-fixes by this push:
new 26ecf61286 Fix
org.apache.cxf.systest.jaxrs.JAXRS20ClientServerBookTest.testGetCookies test
case
26ecf61286 is described below
commit 26ecf612868922d3f474a635e893d27a326eed2d
Author: Andriy Redko <[email protected]>
AuthorDate: Thu Jan 2 10:11:58 2025 -0500
Fix
org.apache.cxf.systest.jaxrs.JAXRS20ClientServerBookTest.testGetCookies test
case
---
.../src/test/java/org/apache/cxf/systest/jaxrs/BookStore.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git
a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/BookStore.java
b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/BookStore.java
index 1872175e94..8b38e40158 100644
--- a/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/BookStore.java
+++ b/systests/jaxrs/src/test/java/org/apache/cxf/systest/jaxrs/BookStore.java
@@ -38,6 +38,7 @@ import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.UUID;
+import java.util.stream.Collectors;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
@@ -1857,7 +1858,11 @@ public class BookStore {
@Produces("application/json")
public Response getCookies() {
return Response.ok()
- .header(HttpHeaders.SET_COOKIE,
httpHeaders.getRequestHeaders().getFirst(HttpHeaders.COOKIE))
+ .header(HttpHeaders.SET_COOKIE, httpHeaders
+ .getRequestHeaders()
+ .get(HttpHeaders.COOKIE)
+ .stream()
+ .collect(Collectors.joining("; ")))
.build();
}