cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/environment/commandline CommandLineRequest.java
Date Tue, 19 Jun 2001 12:10:03 GMT
dims        01/06/19 05:10:03

  Modified:    src/org/apache/cocoon/environment/commandline
                        CommandLineRequest.java
  Log:
  Patch from Vadim for case-insensitive HTTP headers.
  
  Revision  Changes    Path
  1.3       +3 -3      xml-cocoon2/src/org/apache/cocoon/environment/commandline/CommandLineRequest.java
  
  Index: CommandLineRequest.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/environment/commandline/CommandLineRequest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- CommandLineRequest.java	2001/05/10 22:19:33	1.2
  +++ CommandLineRequest.java	2001/06/19 12:10:03	1.3
  @@ -25,7 +25,7 @@
    * Creates a specific servlet request simulation from command line usage.
    *
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version CVS $Revision: 1.2 $ $Date: 2001/05/10 22:19:33 $
  + * @version CVS $Revision: 1.3 $ $Date: 2001/06/19 12:10:03 $
    */
   
   /*
  @@ -134,10 +134,10 @@
       }
   
       public String getHeader(String name) {
  -        return (headers != null) ? (String) headers.get(name) : null;
  +        return (headers != null) ? (String) headers.get(name.toLowerCase()) : null;
       }
       public int getIntHeader(String name) {
  -        String header = (headers != null) ? (String) headers.get(name) : null;
  +        String header = (headers != null) ? (String) headers.get(name.toLowerCase()) :
null;
           return (header != null) ? Integer.parseInt(header) : -1;
       }
       public long getDateHeader(String name) {
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message