We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b55a4d3 commit 6ffb74dCopy full SHA for 6ffb74d
spring-web/src/main/java/org/springframework/http/ResponseCookie.java
@@ -171,7 +171,7 @@ public String toString() {
171
if (!this.maxAge.isNegative()) {
172
sb.append("; Max-Age=").append(this.maxAge.getSeconds());
173
sb.append("; Expires=");
174
- long millis = this.maxAge.getSeconds() > 0 ? System.currentTimeMillis() + this.maxAge.toMillis() : 0;
+ long millis = (this.maxAge.getSeconds() > 0 ? System.currentTimeMillis() + this.maxAge.toMillis() : 0);
175
sb.append(HttpHeaders.formatDate(millis));
176
}
177
if (this.secure) {
0 commit comments