diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/ByteBufferHttpInput.java b/jetty-server/src/main/java/org/eclipse/jetty/server/ByteBufferHttpInput.java index 04e367c9098..680deb511f6 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/ByteBufferHttpInput.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/ByteBufferHttpInput.java @@ -35,7 +35,7 @@ public class ByteBufferHttpInput extends HttpInput protected int get(ByteBuffer item, byte[] buffer, int offset, int length) { int l = Math.min(item.remaining(), length); - item.get(buffer, offset, length); + item.get(buffer, offset, l); return l; }