Skip to content

Commit

Permalink
#3058 - upgrading spring boot
Browse files Browse the repository at this point in the history
  • Loading branch information
rmmayo committed Dec 27, 2024
1 parent 4dc68b6 commit f05c361
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions service/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ spring:
location: ${java.io.tmpdir}
max-file-size: ${skills.config.maxAttachmentSize}
max-request-size: ${skills.config.maxAttachmentSize}
# http:
# client:
# factory: simple
management:
server:
port: 8808
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,11 @@ class RestTemplateWrapper extends RestTemplate {
HttpHeaders headers = response.getHeaders();

List<String> returnedCookies = headers.getOrEmpty(HttpHeaders.SET_COOKIE)
if (returnedCookies && cookies == null) {
cookies = returnedCookies
if (returnedCookies /*&& cookies == null*/) {
if (cookies == null) {
cookies = []
}
cookies.addAll(returnedCookies)
log.info("Setting cookies to {}", returnedCookies)
}
if (returnedCookies && !xsrfToken) {
Expand Down

0 comments on commit f05c361

Please sign in to comment.