mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-01 11:29:29 +00:00
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…
x
Reference in New Issue
Block a user