Took care of the case where a message implements both HttpMessage and HttpChunk
This commit is contained in:
parent
35ac9ef38e
commit
0847720e41
@ -63,9 +63,7 @@ public abstract class HttpMessageEncoder extends OneToOneEncoder {
|
||||
} else {
|
||||
return wrappedBuffer(header, content);
|
||||
}
|
||||
}
|
||||
|
||||
if (msg instanceof HttpChunk) {
|
||||
} else if (msg instanceof HttpChunk) {
|
||||
HttpChunk chunk = (HttpChunk) msg;
|
||||
if (chunk.isLast()) {
|
||||
return LAST_CHUNK.duplicate();
|
||||
|
Loading…
Reference in New Issue
Block a user