Ensure that the last bad chunk is LastHttpChunk
This commit is contained in:
parent
18d91b8bf6
commit
acc781ba1b
@ -94,7 +94,7 @@ public class HttpInvalidMessageTest {
|
|||||||
HttpRequest req = ch.readInbound();
|
HttpRequest req = ch.readInbound();
|
||||||
assertTrue(req.getDecoderResult().isSuccess());
|
assertTrue(req.getDecoderResult().isSuccess());
|
||||||
|
|
||||||
HttpContent chunk = ch.readInbound();
|
LastHttpContent chunk = ch.readInbound();
|
||||||
DecoderResult dr = chunk.getDecoderResult();
|
DecoderResult dr = chunk.getDecoderResult();
|
||||||
assertFalse(dr.isSuccess());
|
assertFalse(dr.isSuccess());
|
||||||
assertTrue(dr.isFailure());
|
assertTrue(dr.isFailure());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user