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 {
|
} else {
|
||||||
return wrappedBuffer(header, content);
|
return wrappedBuffer(header, content);
|
||||||
}
|
}
|
||||||
}
|
} else if (msg instanceof HttpChunk) {
|
||||||
|
|
||||||
if (msg instanceof HttpChunk) {
|
|
||||||
HttpChunk chunk = (HttpChunk) msg;
|
HttpChunk chunk = (HttpChunk) msg;
|
||||||
if (chunk.isLast()) {
|
if (chunk.isLast()) {
|
||||||
return LAST_CHUNK.duplicate();
|
return LAST_CHUNK.duplicate();
|
||||||
|
Loading…
Reference in New Issue
Block a user