From b669237bac0027ab039da0931ec3dc13fb223b3e Mon Sep 17 00:00:00 2001 From: Derek Troy-West Date: Tue, 27 Aug 2013 18:36:59 +1000 Subject: [PATCH] HTTP Chunk, wrong delimiter written --- .../java/io/netty/handler/codec/http/HttpObjectEncoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectEncoder.java b/codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectEncoder.java index 3819a158bd..1bf24bfb67 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectEncoder.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/HttpObjectEncoder.java @@ -45,7 +45,7 @@ public abstract class HttpObjectEncoder extends MessageTo private static final byte[] ZERO_CRLF = { '0', CR, LF }; private static final byte[] ZERO_CRLF_CRLF = { '0', CR, LF, CR, LF }; private static final byte[] HEADER_SEPARATOR = { COLON, SP }; - private static final ByteBuf CRLF_BUF = unreleasableBuffer(directBuffer(ZERO_CRLF.length).writeBytes(ZERO_CRLF)); + private static final ByteBuf CRLF_BUF = unreleasableBuffer(directBuffer(CRLF.length).writeBytes(CRLF)); private static final ByteBuf ZERO_CRLF_CRLF_BUF = unreleasableBuffer(directBuffer(ZERO_CRLF_CRLF.length) .writeBytes(ZERO_CRLF_CRLF));