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