You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mt...@apache.org on 2006/11/26 12:16:06 UTC

svn commit: r479344 - /tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/Constants.java

Author: mturk
Date: Sun Nov 26 03:16:06 2006
New Revision: 479344

URL: http://svn.apache.org/viewvc?view=rev&rev=479344
Log:
The header set by Tomcat are always in proper case.
Skip creating additional lowercase String when getting AJP response index. 

Modified:
    tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/Constants.java

Modified: tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/Constants.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/Constants.java?view=diff&rev=479344&r1=479343&r2=479344
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/Constants.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/coyote/ajp/Constants.java Sun Nov 26 03:16:06 2006
@@ -185,17 +185,17 @@
 
     // Translates integer codes to response header names
     public static final String []responseTransArray = {
-            "content-type",
-            "content-language",
-            "content-length",
-            "date",
-            "last-modified",
-            "location",
-            "set-cookie",
-            "set-cookie2",
-            "servlet-engine",
-            "status",
-            "www-authenticate"
+            "Content-Type",
+            "Content-Language",
+            "Content-Length",
+            "Date",
+            "Last-Modified",
+            "Location",
+            "Set-Cookie",
+            "Set-Cookie2",
+            "Servlet-Engine",
+            "Status",
+            "WWW-Authenticate"
     };
 
     private static final Hashtable<String,Integer>  responseTransHash =
@@ -216,7 +216,7 @@
 
     public static final int getResponseAjpIndex(String header)
     {
-        Integer i = responseTransHash.get(header.toLowerCase(Locale.US));
+        Integer i = responseTransHash.get(header);
         if (i == null)
             return 0;
         else



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org