tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http HttpRequestImpl.java
Date Sun, 04 Feb 2001 02:23:54 GMT
craigmcc    01/02/03 18:23:54

  Modified:    catalina/src/share/org/apache/catalina/connector/http
                        HttpRequestImpl.java
  Log:
  Header name comparisons must be lower case.
  
  NOTE:  This regression was caught by running the unit test suite.  To do
  so yourself, do the following:
  
  	cd jakarta-tomcat-4.0
  	./build.sh
  	cd tester
  	./build.sh deploy-main
  	cd ../build
  	./bin/catalina.sh start
  	./bin/tester.sh
  
  Revision  Changes    Path
  1.7       +6 -4      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http/HttpRequestImpl.java
  
  Index: HttpRequestImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http/HttpRequestImpl.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- HttpRequestImpl.java	2001/02/04 00:49:02	1.6
  +++ HttpRequestImpl.java	2001/02/04 02:23:54	1.7
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http/HttpRequestImpl.java,v
1.6 2001/02/04 00:49:02 glenn Exp $
  - * $Revision: 1.6 $
  - * $Date: 2001/02/04 00:49:02 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http/HttpRequestImpl.java,v
1.7 2001/02/04 02:23:54 craigmcc Exp $
  + * $Revision: 1.7 $
  + * $Date: 2001/02/04 02:23:54 $
    *
    * ====================================================================
    *
  @@ -81,7 +81,7 @@
    *
    * @author Craig R. McClanahan
    * @author Remy Maucherat
  - * @version $Revision: 1.6 $ $Date: 2001/02/04 00:49:02 $
  + * @version $Revision: 1.7 $ $Date: 2001/02/04 02:23:54 $
    */
   
   final class HttpRequestImpl
  @@ -374,6 +374,8 @@
        * @param name Name of the requested header
        */
       public Enumeration getHeaders(String name) {
  +
  +        name = name.toLowerCase();
   	ArrayList tempArrayList = new ArrayList();
   	for (int i = 0; i < nextHeader; i++) {
   	    if (headerPool[i].equals(name))
  
  
  

Mime
View raw message