You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bi...@apache.org on 2002/10/03 07:24:06 UTC

cvs commit: jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11 Http11Processor.java

billbarker    2002/10/02 22:24:06

  Modified:    http11/src/java/org/apache/coyote/http11
                        Http11Processor.java
  Log:
  Send the proper header for HTTP/1.0 Keep-Alives.
  
  If we're going to support it, we should do it right.
  
  Fix for bug #12783
  
  Reported By: cizquierdo@timeindustrial.com
  Submitted By:  C Twomey ctwomey@yahoo.com
  
  Revision  Changes    Path
  1.38      +2 -0      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.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- Http11Processor.java	21 Sep 2002 06:15:50 -0000	1.37
  +++ Http11Processor.java	3 Oct 2002 05:24:06 -0000	1.38
  @@ -895,6 +895,8 @@
   
           if (!keepAlive) {
               response.addHeader("Connection", "close");
  +        } else if(!http11) {
  +            response.addHeader("Connection", "Keep-Alive");
           }
   
           // Build the response header
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>