diff --git a/src/main/java/org/jboss/netty/buffer/CompositeChannelBuffer.java b/src/main/java/org/jboss/netty/buffer/CompositeChannelBuffer.java index 8d661393c9..2b75f6f52e 100644 --- a/src/main/java/org/jboss/netty/buffer/CompositeChannelBuffer.java +++ b/src/main/java/org/jboss/netty/buffer/CompositeChannelBuffer.java @@ -488,7 +488,7 @@ public class CompositeChannelBuffer extends AbstractChannelBuffer { } ByteBuffer[] buffers = toByteBuffers(index, length); - ByteBuffer merged = ByteBuffer.allocate(length); + ByteBuffer merged = ByteBuffer.allocate(length).order(order()); for (ByteBuffer b: buffers) { merged.put(b); }