Fixed a bug where HttpMessage's content becomes an EMPTY_BUFFER after messageReceive event is already fired to process chunked encoding
This commit is contained in:
parent
445be963ae
commit
23a73f20d6
@ -297,13 +297,13 @@ public abstract class HttpMessageDecoder extends ReplayingDecoder<HttpMessageDec
|
|||||||
private Object reset() {
|
private Object reset() {
|
||||||
HttpMessage message = this.message;
|
HttpMessage message = this.message;
|
||||||
ChannelBuffer content = this.content;
|
ChannelBuffer content = this.content;
|
||||||
if (content == null) {
|
|
||||||
content = ChannelBuffers.EMPTY_BUFFER;
|
|
||||||
}
|
|
||||||
message.setContent(content);
|
|
||||||
|
|
||||||
this.message = null;
|
if (content != null) {
|
||||||
|
message.setContent(content);
|
||||||
this.content = null;
|
this.content = null;
|
||||||
|
}
|
||||||
|
this.message = null;
|
||||||
|
|
||||||
checkpoint(State.SKIP_CONTROL_CHARS);
|
checkpoint(State.SKIP_CONTROL_CHARS);
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user