Skip to content

Commit

Permalink
Fixed bug with cookie validation introduced by PR
Browse files Browse the repository at this point in the history
  • Loading branch information
johanhaleby committed Sep 5, 2023
1 parent ad7d6a9 commit 0ab7b78
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ class DetailedCookieAssertion {
Cookie cookie = cookiesInHeader.get(cookieName)
if (cookie == null) {
cookie = responseCookies.get(cookieName)
} else if (cookie.getExpiryDate() == null) {
Cookie cookieFromResponse = responseCookies.get(cookieName);
} else if (cookie.getExpiryDate() != null) {
Cookie cookieFromResponse = responseCookies.get(cookieName)
cookie = new Cookie.Builder(cookie).setExpiryDate(cookieFromResponse.getExpiryDate()).build()
}

Expand Down

0 comments on commit 0ab7b78

Please sign in to comment.