Mercurial Hosting > luan
diff src/org/eclipse/jetty/server/Response.java @ 1020:6be43ef1eb96
HttpHeaderValues uses StringCache
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 31 Oct 2016 22:24:41 -0600 |
parents | 4dc1e1a18661 |
children | 3718afd99988 |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/Response.java Mon Oct 31 03:33:42 2016 -0600 +++ b/src/org/eclipse/jetty/server/Response.java Mon Oct 31 22:24:41 2016 -0600 @@ -771,14 +771,14 @@ String[] values = connection.split(","); for (int i=0;values!=null && i<values.length;i++) { - CachedBuffer cb = HttpHeaderValues.CACHE.get(values[0].trim()); + int cb = HttpHeaderValues.CACHE.getOrdinal(values[0].trim()); - if (cb!=null) + if (cb != -1) { - switch(cb.getOrdinal()) + switch(cb) { case HttpHeaderValues.CLOSE_ORDINAL: - response_fields.put(HttpHeaders.CONNECTION_BUFFER,HttpHeaderValues.CLOSE_BUFFER); + response_fields.put(HttpHeaders.CONNECTION_BUFFER,HttpHeaderValues.CLOSE); break; case HttpHeaderValues.KEEP_ALIVE_ORDINAL: