remm        02/03/10 23:16:33

  Modified:    coyote/src/java/org/apache/coyote/tomcat4 OutputBuffer.java
  Log:
  - Don't auto calculate content-length if already specified in the response
    (even if it doesn't match).
  
  Revision  Changes    Path
  1.6       +1 -1      
jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/OutputBuffer.java
  
  Index: OutputBuffer.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/OutputBuffer.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- OutputBuffer.java 9 Mar 2002 17:39:28 -0000       1.5
  +++ OutputBuffer.java 11 Mar 2002 07:16:33 -0000      1.6
  @@ -371,7 +371,7 @@
           if (coyoteResponse == null)
               return;
   
  -        if (knownResponseSize)
  +        if ((knownResponseSize) && (coyoteResponse.getContentLength() == -1))
               coyoteResponse.setContentLength(cnt);
   
           // If we really have something to write
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to