Fix regression introduced by 0364265f46 which could lead to corrupt attribute values

This commit is contained in:
Norman Maurer 2013-06-21 16:09:49 +02:00
parent dbab41cc50
commit e8ea98017f

View File

@ -98,8 +98,8 @@ public abstract class AbstractMemoryHttpData extends AbstractHttpData {
cbb.writerIndex(cbb.writerIndex() + buffer.readableBytes());
} else {
CompositeByteBuf cbb = compositeBuffer();
cbb.addComponent(buffer);
cbb.writerIndex(buffer.readableBytes());
cbb.addComponents(byteBuf, buffer);
cbb.writerIndex(byteBuf.readableBytes() + buffer.readableBytes());
byteBuf = cbb;
}
}