Skip to content

Commit

Permalink
Correctly pass the JSESSIONID cookie
Browse files Browse the repository at this point in the history
Fix regression introduced by 9d991e2
  • Loading branch information
tbouffard committed Dec 13, 2019
1 parent 68950f6 commit 0fe36fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public HttpRequest filter(final HttpRequest request) throws HttpException {
if (localCrumb.getKey().value() != null) {
builder.addHeader(CRUMB_HEADER, localCrumb.getKey().value());
Optional.ofNullable(localCrumb.getKey().sessionIdCookie())
.ifPresent(sessionId -> builder.addHeader(sessionId));
.ifPresent(sessionId -> builder.addHeader(HttpHeaders.COOKIE, sessionId));
} else {
if (localCrumb.getValue() == false) {
throw new RuntimeException("Unexpected exception being thrown: error=" + localCrumb.getKey().errors().get(0));
Expand Down

0 comments on commit 0fe36fb

Please sign in to comment.