From c22b559dfab50e9a8fb5a4d1182695b76c23af47 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Sun, 19 Aug 2012 11:55:15 +0300 Subject: [PATCH] Set maxAge to Integer.MIN_VALUE by default. See #534 --- .../main/java/io/netty/handler/codec/http/CookieDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/CookieDecoder.java b/codec-http/src/main/java/io/netty/handler/codec/http/CookieDecoder.java index 2592c010ea..91ff1b2ad8 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/CookieDecoder.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/CookieDecoder.java @@ -94,7 +94,7 @@ public final class CookieDecoder { String commentURL = null; String domain = null; String path = null; - long maxAge = -1; + long maxAge = Integer.MIN_VALUE; List ports = new ArrayList(2); for (int j = i + 1; j < names.size(); j++, i++) {