remm        00/12/04 20:44:14

  Modified:    catalina/src/share/org/apache/catalina/connector
                        HttpResponseBase.java
  Log:
  - Content length needs to be sent even if it's 0. It's necessary for kepp alive.
  
  Revision  Changes    Path
  1.19      +5 -5      
jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java
  
  Index: HttpResponseBase.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- HttpResponseBase.java     2000/12/01 02:11:20     1.18
  +++ HttpResponseBase.java     2000/12/05 04:44:14     1.19
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java,v
 1.18 2000/12/01 02:11:20 craigmcc Exp $
  - * $Revision: 1.18 $
  - * $Date: 2000/12/01 02:11:20 $
  + * $Header: 
/home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/HttpResponseBase.java,v
 1.19 2000/12/05 04:44:14 remm Exp $
  + * $Revision: 1.19 $
  + * $Date: 2000/12/05 04:44:14 $
    *
    * ====================================================================
    *
  @@ -96,7 +96,7 @@
    * methods need to be implemented.
    *
    * @author Craig R. McClanahan
  - * @version $Revision: 1.18 $ $Date: 2000/12/01 02:11:20 $
  + * @version $Revision: 1.19 $ $Date: 2000/12/05 04:44:14 $
    */
   
   public class HttpResponseBase
  @@ -491,7 +491,7 @@
            outputWriter.print("Content-Type: " + getContentType() + "\r\n");
               //            System.out.println(" Content-Type: " + getContentType());
        }
  -     if (getContentLength() > 0) {
  +     if (getContentLength() >= 0) {
            outputWriter.print("Content-Length: " + getContentLength() +
                               "\r\n");
               //            System.out.println(" Content-Length: " + 
getContentLength());
  
  
  

Reply via email to