Oops - silly mistake
This commit is contained in:
parent
3d5a35e45f
commit
fc2b456b98
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user