Oops - silly mistake

This commit is contained in:
Trustin Lee 2009-01-07 12:52:53 +00:00
parent 3d5a35e45f
commit fc2b456b98

View File

@ -68,7 +68,7 @@ public class LengthFieldPrepender extends OneToOneEncoder {
ChannelBuffer body = (ChannelBuffer) msg;
int length = lengthIncludesLengthFieldLength?
body.readableBytes() : body.readableBytes() + lengthFieldLength;
body.readableBytes() + lengthFieldLength : body.readableBytes();
switch (lengthFieldLength) {
case 1:
header.writeByte((byte) length);