parent
b55a4d3908
commit
6ffb74def3
|
@ -171,7 +171,7 @@ public final class ResponseCookie extends HttpCookie {
|
||||||
if (!this.maxAge.isNegative()) {
|
if (!this.maxAge.isNegative()) {
|
||||||
sb.append("; Max-Age=").append(this.maxAge.getSeconds());
|
sb.append("; Max-Age=").append(this.maxAge.getSeconds());
|
||||||
sb.append("; Expires=");
|
sb.append("; Expires=");
|
||||||
long millis = this.maxAge.getSeconds() > 0 ? System.currentTimeMillis() + this.maxAge.toMillis() : 0;
|
long millis = (this.maxAge.getSeconds() > 0 ? System.currentTimeMillis() + this.maxAge.toMillis() : 0);
|
||||||
sb.append(HttpHeaders.formatDate(millis));
|
sb.append(HttpHeaders.formatDate(millis));
|
||||||
}
|
}
|
||||||
if (this.secure) {
|
if (this.secure) {
|
||||||
|
|
Loading…
Reference in New Issue