From d9ac6638f4853180a2e46cd504b6483b7381ea87 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Tue, 2 Apr 2013 07:38:46 +0200 Subject: [PATCH] [#1221] Make sure HttpObjectAggregator 100-Continue buffer is not released --- .../io/netty/handler/codec/http/HttpObjectAggregator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;