Two FIXMEs
This commit is contained in:
parent
a26d1e4392
commit
199088a7c5
@ -105,6 +105,8 @@ public class CookieDecoder {
|
||||
path = QueryStringDecoder.decodeComponent(value, charset);
|
||||
}
|
||||
else if (CookieHeaderNames.EXPIRES.equalsIgnoreCase(name)) {
|
||||
// FIXME: Expires attribute has different representation from Max-Age.
|
||||
// Format: Wdy, DD-Mon-YYYY HH:MM:SS GMT
|
||||
maxAge = Integer.valueOf(value);
|
||||
}
|
||||
else if (CookieHeaderNames.MAX_AGE.equalsIgnoreCase(name)) {
|
||||
|
@ -81,6 +81,8 @@ public class CookieEncoder {
|
||||
Cookie cookie = cookies.get(cookieName);
|
||||
add(sb, cookieName, QueryStringEncoder.encodeComponent(cookie.getValue(), charset));
|
||||
|
||||
// FIXME: Expires attribute has different representation from Max-Age.
|
||||
// Format: Wdy, DD-Mon-YYYY HH:MM:SS GMT
|
||||
add(sb, CookieHeaderNames.getMaxAgeString(encodingVersion), cookie.getMaxAge());
|
||||
|
||||
if (cookie.getPath() != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user