jetty-9 use spare space in content buffer for header

This commit is contained in:
Greg Wilkins 2012-12-14 07:40:05 +11:00
parent c8c15a4063
commit e5679d42c0
1 changed files with 1 additions and 1 deletions

View File

@ -411,7 +411,7 @@ public class HttpConnection extends AbstractConnection implements Runnable, Http
if (header!=null)
{
// don't release header in spare content buffer
if (!lastContent || content==null || content.array()!=header.array())
if (!lastContent || content==null || !content.hasArray() || !header.hasArray() || content.array()!=header.array())
_bufferPool.release(header);
}
if (chunk!=null)