Update codec-http/src/main/java/io/netty/handler/codec/http/DefaultCookie.java

Allow to set a negative value for maxAge of DefaultCookie. See #533
This commit is contained in:
Norman Maurer 2012-08-19 11:48:51 +03:00
parent 2bb114bcb7
commit e80abf0b39

View File

@ -199,11 +199,6 @@ public class DefaultCookie implements Cookie {
@Override
public void setMaxAge(long maxAge) {
if (maxAge < -1) {
throw new IllegalArgumentException(
"maxAge must be either -1, 0, or a positive integer: " +
maxAge);
}
this.maxAge = maxAge;
}