Skip to content

Commit

Permalink
Correctly detect LastHttpContent after encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
Norman Maurer committed Jul 5, 2013
1 parent 9f0f653 commit ea85054
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ protected void encode(ChannelHandlerContext ctx, HttpObject msg, MessageList<Obj
case AWAIT_CONTENT: {
ensureContent(msg);
encodeContent((HttpContent) msg, out);
if (msg instanceof LastHttpContent) {
if (out.get(out.size() - 1) instanceof LastHttpContent) {
state = State.AWAIT_HEADERS;
}
break;
Expand Down

0 comments on commit ea85054

Please sign in to comment.