diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectAggregator.java b/codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectAggregator.java index f9a1d043af..bba5d5d18d 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectAggregator.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectAggregator.java @@ -47,8 +47,8 @@ import static io.netty.handler.codec.http.HttpHeaders.*; */ public class HttpObjectAggregator extends MessageToMessageDecoder { public static final int DEFAULT_MAX_COMPOSITEBUFFER_COMPONENTS = 1024; - private static final ByteBuf CONTINUE = Unpooled.copiedBuffer( - "HTTP/1.1 100 Continue\r\n\r\n", CharsetUtil.US_ASCII); + private static final ByteBuf CONTINUE = Unpooled.unreleasableBuffer(Unpooled.copiedBuffer( + "HTTP/1.1 100 Continue\r\n\r\n", CharsetUtil.US_ASCII)); private final int maxContentLength; private FullHttpMessage currentMessage;