Jakarta Cookie HttpOnly Serialization
The new specification represents Cookie attribute using HttpOnly: "" vs HttpOnly: "true". This updates the test to correspond to the new Servlet specification and is a breaking change related to jakarta updates.
This commit is contained in:
@@ -52,7 +52,7 @@ class CookieDeserializer extends JsonDeserializer<Cookie> {
|
||||
cookie.setVersion(readJsonNode(jsonNode, "version").asInt());
|
||||
cookie.setPath(readJsonNode(jsonNode, "path").asText());
|
||||
JsonNode attributes = readJsonNode(jsonNode, "attributes");
|
||||
cookie.setHttpOnly(readJsonNode(attributes, "HttpOnly").asBoolean());
|
||||
cookie.setHttpOnly(readJsonNode(attributes, "HttpOnly") != null);
|
||||
return cookie;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user