Skip to content

Commit bfbd88a

Browse files
committed
update Rest
1 parent 965c953 commit bfbd88a

File tree

1 file changed

+5
-1
lines changed
  • springboot-starter/src/main/java/com/codingapi/springboot/framework/rest

1 file changed

+5
-1
lines changed

springboot-starter/src/main/java/com/codingapi/springboot/framework/rest/SessionClient.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ public SessionClient(HttpProxyProperties properties) {
2020

2121
public HttpHeaders copyHeaders(HttpHeaders headers) {
2222
for (String key : headers.keySet()) {
23-
httpHeaders.set(key, String.join(";", Objects.requireNonNull(headers.get(key))));
23+
if(key.equals("Set-Cookie")){
24+
httpHeaders.set("Cookie", String.join(";", Objects.requireNonNull(headers.get(key))));
25+
}else {
26+
httpHeaders.set(key, String.join(";", Objects.requireNonNull(headers.get(key))));
27+
}
2428
}
2529
return httpHeaders;
2630
}

0 commit comments

Comments
 (0)