Skip to content

Commit

Permalink
Copy paste error in UNDERTOW-802 fix2
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Aug 30, 2016
1 parent 8b3527b commit 75641c1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions core/src/main/java/io/undertow/server/Connectors.java
Expand Up @@ -194,11 +194,9 @@ private static String addVersion1ResponseCookieToExchange(final Cookie cookie) {
header.append("; Expires=");
header.append(DateUtils.toDateString(cookie.getExpires()));
}
if (cookie.getComment() != null) {
if (cookie.getComment() != null && !cookie.getComment().isEmpty()) {
header.append("; Comment=");
header.append(cookie.getComment());
}
if (cookie.getComment() != null && !cookie.getComment().isEmpty()) {
header.append("; Comment=");
header.append(cookie.getComment());
}
return header.toString();
}
Expand Down

0 comments on commit 75641c1

Please sign in to comment.