tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11 Http11Processor.java
Date Mon, 23 Aug 2004 19:29:35 GMT
markt       2004/08/23 12:29:35

  Modified:    http11/src/java/org/apache/coyote/http11
                        Http11Processor.java
  Log:
  Fix bug 16254 - Server header appears twice after a call to response.setHeader()
  
  Revision  Changes    Path
  1.105     +3 -1      jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Processor.java
  
  Index: Http11Processor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Processor.java,v
  retrieving revision 1.104
  retrieving revision 1.105
  diff -u -r1.104 -r1.105
  --- Http11Processor.java	21 Aug 2004 02:51:37 -0000	1.104
  +++ Http11Processor.java	23 Aug 2004 19:29:35 -0000	1.105
  @@ -1511,7 +1511,9 @@
           }
            
           // Add server header
  -        response.addHeader("Server", Constants.SERVER);
  +        if (! response.containsHeader("Server")){
  +            response.addHeader("Server", Constants.SERVER);
  +        }
   
           // Add transfer encoding header
           // FIXME
  
  
  

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


Mime
View raw message