tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From craig...@locus.apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/test HttpProcessor.java
Date Wed, 13 Sep 2000 20:15:02 GMT
craigmcc    00/09/13 13:15:01

  Modified:    catalina/src/share/org/apache/catalina/connector/http
                        HttpProcessor.java
               catalina/src/share/org/apache/catalina/connector/test
                        HttpProcessor.java
  Log:
  Allow the "Authorization" header, if any, to be included in the headers
  returned to the servlet for a request.
  
  Submitted by: Bernd Eilers <bei@stardivision.de>
  
  Revision  Changes    Path
  1.7       +5 -6      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http/HttpProcessor.java
  
  Index: HttpProcessor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http/HttpProcessor.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- HttpProcessor.java	2000/09/09 01:55:45	1.6
  +++ HttpProcessor.java	2000/09/13 20:14:52	1.7
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http/HttpProcessor.java,v
1.6 2000/09/09 01:55:45 craigmcc Exp $
  - * $Revision: 1.6 $
  - * $Date: 2000/09/09 01:55:45 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http/HttpProcessor.java,v
1.7 2000/09/13 20:14:52 craigmcc Exp $
  + * $Revision: 1.7 $
  + * $Date: 2000/09/13 20:14:52 $
    *
    * ====================================================================
    *
  @@ -107,7 +107,7 @@
    *
    * @author Craig R. McClanahan
    * @author Remy Maucherat
  - * @version $Revision: 1.6 $ $Date: 2000/09/09 01:55:45 $
  + * @version $Revision: 1.7 $ $Date: 2000/09/13 20:14:52 $
    */
   
   final class HttpProcessor
  @@ -586,8 +586,7 @@
                           (sm.getString
                            ("httpProcessor.parseHeaders.unknownExpectation"));
   	    }
  -	    if (!match.equals("authorization"))
  -		request.addHeader(name, value);
  +	    request.addHeader(name, value);
   	}
   
       }
  
  
  
  1.5       +5 -4      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/test/HttpProcessor.java
  
  Index: HttpProcessor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/test/HttpProcessor.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- HttpProcessor.java	2000/09/09 01:55:46	1.4
  +++ HttpProcessor.java	2000/09/13 20:14:57	1.5
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/test/HttpProcessor.java,v
1.4 2000/09/09 01:55:46 craigmcc Exp $
  - * $Revision: 1.4 $
  - * $Date: 2000/09/09 01:55:46 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/test/HttpProcessor.java,v
1.5 2000/09/13 20:14:57 craigmcc Exp $
  + * $Revision: 1.5 $
  + * $Date: 2000/09/13 20:14:57 $
    *
    * ====================================================================
    *
  @@ -104,7 +104,7 @@
    * the request.  When the processor is completed, it will recycle itself.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.4 $ $Date: 2000/09/09 01:55:46 $
  + * @version $Revision: 1.5 $ $Date: 2000/09/13 20:14:57 $
    */
   
   final class HttpProcessor
  @@ -377,6 +377,7 @@
   	    // Set the corresponding request headers
   	    if (match.equals("authorization")) {
   		request.setAuthorization(value);
  +		request.addHeader(name, value);
   	    } else if (match.equals("accept-language")) {
             request.addHeader(name, value);
             //
  
  
  

Mime
View raw message