Fix regression introduced by 0364265f46
which could lead to corrupt attribute values
This commit is contained in:
parent
dbab41cc50
commit
e8ea98017f
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user