We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 965c953 commit bfbd88aCopy full SHA for bfbd88a
springboot-starter/src/main/java/com/codingapi/springboot/framework/rest/SessionClient.java
@@ -20,7 +20,11 @@ public SessionClient(HttpProxyProperties properties) {
20
21
public HttpHeaders copyHeaders(HttpHeaders headers) {
22
for (String key : headers.keySet()) {
23
- httpHeaders.set(key, String.join(";", Objects.requireNonNull(headers.get(key))));
+ 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
+ }
28
}
29
return httpHeaders;
30
0 commit comments