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: {
|
case READ_CHUNK_FOOTER: {
|
||||||
String line = readIntoCurrentLine(buffer);
|
String line = readIntoCurrentLine(buffer);
|
||||||
if (line.trim().length() == 0) {
|
if (line.trim().length() == 0) {
|
||||||
|
if (mergeChunks) {
|
||||||
return reset();
|
return reset();
|
||||||
|
} else {
|
||||||
|
reset();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
checkpoint(State.READ_CHUNK_FOOTER);
|
checkpoint(State.READ_CHUNK_FOOTER);
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user