diff src/org/eclipse/jetty/http/HttpParser.java @ 1005:0e96ce3db20a

remove HttpBuffers
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 23 Oct 2016 02:42:05 -0600
parents 35d04ac3fd0b
children 8c13b9224cff
line wrap: on
line diff
--- a/src/org/eclipse/jetty/http/HttpParser.java	Sat Oct 22 23:00:57 2016 -0600
+++ b/src/org/eclipse/jetty/http/HttpParser.java	Sun Oct 23 02:42:05 2016 -0600
@@ -67,8 +67,8 @@
 	private Buffer _body; // Buffer for large content
 	private Buffer _buffer; // The current buffer in use (either _header or _content)
 	private CachedBuffer _cached;
-	private final View.CaseInsensitive _tok0; // Saved token: header name, request method or response version
-	private final View.CaseInsensitive _tok1; // Saved token: header value, request URI or response code
+	private final View.CaseInsensitive _tok0 = new View.CaseInsensitive(); // Saved token: header name, request method or response version
+	private final View.CaseInsensitive _tok1 = new View.CaseInsensitive(); // Saved token: header value, request URI or response code
 	private String _multiLineValue;
 	private int _responseStatus; // If >0 then we are parsing a response
 	private boolean _persistent;
@@ -88,8 +88,6 @@
 		_buffers = buffers;
 		_endp = endp;
 		_handler = handler;
-		_tok0 = new View.CaseInsensitive();
-		_tok1 = new View.CaseInsensitive();
 	}
 
 	public long getContentLength()