Mercurial Hosting > luan
diff src/org/eclipse/jetty/server/Request.java @ 1022:3718afd99988
HttpHeaders uses StringCache
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 01 Nov 2016 01:04:46 -0600 |
parents | 6be43ef1eb96 |
children | eca26899c4bc |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/Request.java Mon Oct 31 22:49:25 2016 -0600 +++ b/src/org/eclipse/jetty/server/Request.java Tue Nov 01 01:04:46 2016 -0600 @@ -293,13 +293,13 @@ @Override public int getContentLength() { - return (int)_connection._requestFields.getLongField(HttpHeaders.CONTENT_LENGTH_BUFFER); + return (int)_connection._requestFields.getLongField(HttpHeaders.CONTENT_LENGTH); } @Override public String getContentType() { - return _connection._requestFields.getStringField(HttpHeaders.CONTENT_TYPE_BUFFER); + return _connection._requestFields.getStringField(HttpHeaders.CONTENT_TYPE); } @Override @@ -316,7 +316,7 @@ _cookiesExtracted = true; - Enumeration enm = _connection._requestFields.getValues(HttpHeaders.COOKIE_BUFFER); + Enumeration enm = _connection._requestFields.getValues(HttpHeaders.COOKIE); // Handle no cookies if (enm != null) @@ -676,7 +676,7 @@ return _serverName; // Return host from header field - String hostPort = _connection._requestFields.getStringField(HttpHeaders.HOST_BUFFER); + String hostPort = _connection._requestFields.getStringField(HttpHeaders.HOST); if (hostPort != null) { loop: for (int i = hostPort.length(); i-- > 0;)