Merge remote-tracking branch 'origin/jetty-9.4.x' into jetty-10.0.x
This commit is contained in:
commit
eb1e0b6d51
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue