diff src/org/eclipse/jetty/server/AbstractHttpConnection.java @ 1025:cf0367978d8b

remove View.CaseInsensitive
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 02 Nov 2016 23:46:43 -0600
parents 27f3dc761452
children 2ea54e6117c3
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/AbstractHttpConnection.java	Tue Nov 01 03:46:28 2016 -0600
+++ b/src/org/eclipse/jetty/server/AbstractHttpConnection.java	Wed Nov 02 23:46:43 2016 -0600
@@ -445,10 +445,8 @@
 				_parser);
 	}
 
-	private void startRequest(String method, Buffer uri, String version) throws IOException
+	private void startRequest(String method, String uri, String version) throws IOException
 	{
-		uri=uri.asImmutableBuffer();
-
 		_host = false;
 		_expect = false;
 		_expect100Continue = false;
@@ -462,19 +460,20 @@
 		try
 		{
 			_head = false;
+			byte[] bytes = StringUtil.getBytes(uri);
 			switch (HttpMethods.CACHE.getOrdinal(method))
 			{
 			  case HttpMethods.CONNECT_ORDINAL:
-				  _uri.parseConnect(uri.array(), uri.getIndex(), uri.length());
+				  _uri.parseConnect(bytes, 0, bytes.length);
 				  break;
 
 			  case HttpMethods.HEAD_ORDINAL:
 				  _head = true;
-				  _uri.parse(uri.array(), uri.getIndex(), uri.length());
+				  _uri.parse(bytes, 0, bytes.length);
 				  break;
 
 			  default:
-				  _uri.parse(uri.array(), uri.getIndex(), uri.length());
+				  _uri.parse(bytes, 0, bytes.length);
 			}
 
 			_request.setUri(_uri);
@@ -657,7 +656,7 @@
 	private class RequestHandler implements HttpParser.EventHandler
 	{
 		@Override
-		public void startRequest(String method, Buffer uri, String version) throws IOException
+		public void startRequest(String method, String uri, String version) throws IOException
 		{
 			AbstractHttpConnection.this.startRequest(method, uri, version);
 		}