Save memory copy

This commit is contained in:
Trustin Lee 2012-12-19 18:36:31 +09:00
parent 937c0481e0
commit 78ccfeedf9

View File

@ -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();
}