Fixed a bug where HttpRequest message is decoded twice

This commit is contained in:
Trustin Lee 2009-02-12 06:25:13 +00:00
parent 2ac8d11a34
commit 5ee6da3892

View File

@ -173,7 +173,11 @@ public abstract class HttpMessageDecoder extends ReplayingDecoder<HttpMessageDec
case READ_CHUNK_FOOTER: {
String line = readIntoCurrentLine(buffer);
if (line.trim().length() == 0) {
if (mergeChunks) {
return reset();
} else {
reset();
}
} else {
checkpoint(State.READ_CHUNK_FOOTER);
return null;