|
|
|
@ -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) { |
|
|
|
|