Merge remote-tracking branch 'origin/jetty-9.4.x' into jetty-10.0.x

This commit is contained in:
gregw 2020-07-15 10:52:57 +02:00
commit eb1e0b6d51
1 changed files with 1 additions and 1 deletions

View File

@ -600,7 +600,7 @@ public class BufferUtil
}
else
{
byte[] bytes = new byte[TEMP_BUFFER_SIZE];
byte[] bytes = new byte[Math.min(buffer.remaining(), TEMP_BUFFER_SIZE)];
while (buffer.hasRemaining())
{
int byteCountToWrite = Math.min(buffer.remaining(), TEMP_BUFFER_SIZE);