diff src/org/eclipse/jetty/server/AbstractHttpConnection.java @ 1033:4ada7a8c128a

remove HttpParser._buffers
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 03 Nov 2016 04:00:25 -0600
parents 2ea54e6117c3
children 563458c4dc93
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/AbstractHttpConnection.java	Thu Nov 03 03:19:50 2016 -0600
+++ b/src/org/eclipse/jetty/server/AbstractHttpConnection.java	Thu Nov 03 04:00:25 2016 -0600
@@ -125,7 +125,8 @@
 	}
 
 	void initParser() {
-		_parser = new HttpParser(_connector.getRequestBuffers(), _endp, new RequestHandler());
+		Buffers buffers = _connector.getRequestBuffers();
+		_parser = new HttpParser(buffers.getHeader(), buffers.getBuffer(), _endp, new RequestHandler());
 	}
 
 	private void init() {
@@ -167,7 +168,7 @@
 		if (_expect100Continue)
 		{
 			// is content missing?
-			if (_parser.getHeaderBuffer()==null || _parser.getHeaderBuffer().length()<2)
+			if (_parser._header.length()<2)
 			{
 				if (_generator.isCommitted())
 					throw new IllegalStateException("Committed before 100 Continues");