Skip to content

Commit

Permalink
Ensure that the last bad chunk is LastHttpChunk
Browse files Browse the repository at this point in the history
  • Loading branch information
trustin committed Feb 19, 2014
1 parent 18d91b8 commit acc781b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void testBadChunk() throws Exception {
HttpRequest req = ch.readInbound();
assertTrue(req.getDecoderResult().isSuccess());

HttpContent chunk = ch.readInbound();
LastHttpContent chunk = ch.readInbound();
DecoderResult dr = chunk.getDecoderResult();
assertFalse(dr.isSuccess());
assertTrue(dr.isFailure());
Expand Down

0 comments on commit acc781b

Please sign in to comment.