Skip to content

Commit

Permalink
Fix org.apache.cxf.systest.jaxrs.JAXRS20ClientServerBookTest.testGetC…
Browse files Browse the repository at this point in the history
…ookies test case
  • Loading branch information
reta committed Jan 2, 2025
1 parent 633b838 commit 26ecf61
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
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;
Expand Down Expand Up @@ -1857,7 +1858,11 @@ public Map<String, List<String>> getHeaders() {
@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();
}

Expand Down

0 comments on commit 26ecf61

Please sign in to comment.