Fixed a bug where HttpRequest message is decoded twice
This commit is contained in:
parent
2ac8d11a34
commit
5ee6da3892
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user