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 d0a16f2 commit 5d70101
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));

This comment has been minimized.

Copy link
@cdancy

cdancy Dec 13, 2019

Owner

Yeah I should have actually saw this looking over your code earlier. Shame on me.

} else {
if (localCrumb.getValue() == false) {
throw new RuntimeException("Unexpected exception being thrown: error=" + localCrumb.getKey().errors().get(0));
Expand Down

0 comments on commit 5d70101

Please sign in to comment.