From 1a4d304a0b9c678d628ac033afa83559959fa930 Mon Sep 17 00:00:00 2001 From: lachan-roberts Date: Mon, 9 Jul 2018 11:33:05 +1000 Subject: [PATCH] Removed unnecessary CACHE.put calls in HttpParser Signed-off-by: lachan-roberts --- .../src/main/java/org/eclipse/jetty/http/HttpParser.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/jetty-http/src/main/java/org/eclipse/jetty/http/HttpParser.java b/jetty-http/src/main/java/org/eclipse/jetty/http/HttpParser.java index b8a11df0ab0..9284f75b81e 100644 --- a/jetty-http/src/main/java/org/eclipse/jetty/http/HttpParser.java +++ b/jetty-http/src/main/java/org/eclipse/jetty/http/HttpParser.java @@ -228,12 +228,6 @@ public class HttpParser for (HttpHeader h:HttpHeader.values()) if (!CACHE.put(new HttpField(h,(String)null))) throw new IllegalStateException("CACHE FULL"); - // Add some more common headers - CACHE.put(new HttpField(HttpHeader.REFERER,(String)null)); - CACHE.put(new HttpField(HttpHeader.IF_MODIFIED_SINCE,(String)null)); - CACHE.put(new HttpField(HttpHeader.IF_NONE_MATCH,(String)null)); - CACHE.put(new HttpField(HttpHeader.AUTHORIZATION,(String)null)); - CACHE.put(new HttpField(HttpHeader.COOKIE,(String)null)); } private static HttpCompliance compliance()