Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50747
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 9 Feb 2011 21:56:14 +0000 (21:56 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 9 Feb 2011 21:56:14 +0000 (21:56 +0000)
Allow the content length header to be set up to the point the response is committed when a writer is used.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1069131 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/connector/Response.java
webapps/docs/changelog.xml

index 86b1018..00eb844 100644 (file)
@@ -756,9 +756,6 @@ public class Response
         if (included)
             return;
         
-        if (usingWriter)
-            return;
-        
         coyoteResponse.setContentLength(length);
 
     }
index 9c22ba9..d203ff1 100644 (file)
         <code>org.apache.catalina.util.LifecycleBase</code> correctly implement
         the expected state transitions. (markt)
       </add>
+      <fix>
+        <bug>50747</bug>: Allow the content length header to be set up to the
+        point the response is committed when a writer is beng used. (markt)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Tribes">