Save memory copy
This commit is contained in:
parent
937c0481e0
commit
78ccfeedf9
@ -504,7 +504,7 @@ public abstract class HttpMessageDecoder extends ReplayingDecoder<Object, HttpMe
|
||||
if (content == null) {
|
||||
content = buffer.readBytes((int) length);
|
||||
} else {
|
||||
content.writeBytes(buffer.readBytes((int) length));
|
||||
content.writeBytes(buffer, (int) length);
|
||||
}
|
||||
return reset();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user