tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@locus.apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http HttpResponseImpl.java
Date Wed, 22 Nov 2000 02:29:52 GMT
remm        00/11/21 18:29:52

  Modified:    catalina/src/share/org/apache/catalina/connector/http
                        HttpResponseImpl.java
  Log:
  - HEAD was broken (bad content length). Now, if the stream is uninitialized
    but a content length has been set, assume the programmer knows what
    he's doing.
  
  Revision  Changes    Path
  1.6       +5 -5      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http/HttpResponseImpl.java
  
  Index: HttpResponseImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http/HttpResponseImpl.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- HttpResponseImpl.java	2000/11/09 21:16:02	1.5
  +++ HttpResponseImpl.java	2000/11/22 02:29:52	1.6
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http/HttpResponseImpl.java,v
1.5 2000/11/09 21:16:02 remm Exp $
  - * $Revision: 1.5 $
  - * $Date: 2000/11/09 21:16:02 $
  + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/connector/http/HttpResponseImpl.java,v
1.6 2000/11/22 02:29:52 remm Exp $
  + * $Revision: 1.6 $
  + * $Date: 2000/11/22 02:29:52 $
    *
    * ====================================================================
    *
  @@ -78,7 +78,7 @@
    *
    * @author Craig R. McClanahan
    * @author <a href="mailto:remm@apache.org">Remy Maucherat</a>
  - * @version $Revision: 1.5 $ $Date: 2000/11/09 21:16:02 $
  + * @version $Revision: 1.6 $ $Date: 2000/11/22 02:29:52 $
    */
   
   final class HttpResponseImpl
  @@ -263,7 +263,7 @@
        */
       public void finishResponse() throws IOException {
   
  -        if (!isStreamInitialized())
  +        if ((!isStreamInitialized()) && (getContentLength() == -1))
               setContentLength(0);
           super.finishResponse();
   
  
  
  

Mime
View raw message