diff --git a/src/main/java/org/jboss/netty/handler/codec/http/DefaultHttpMessage.java b/src/main/java/org/jboss/netty/handler/codec/http/DefaultHttpMessage.java index 719d317a5d..a23ce7d480 100644 --- a/src/main/java/org/jboss/netty/handler/codec/http/DefaultHttpMessage.java +++ b/src/main/java/org/jboss/netty/handler/codec/http/DefaultHttpMessage.java @@ -60,7 +60,7 @@ public class DefaultHttpMessage implements HttpMessage { throw new NullPointerException("value is null"); } if (headers.get(name) == null) { - headers.put(name, new ArrayList()); + headers.put(name, new ArrayList(1)); } headers.get(name).add(value); }