tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1069131 - in /tomcat/trunk: java/org/apache/catalina/connector/Response.java webapps/docs/changelog.xml
Date Wed, 09 Feb 2011 21:56:15 GMT
Author: markt
Date: Wed Feb  9 21:56:14 2011
New Revision: 1069131

URL: http://svn.apache.org/viewvc?rev=1069131&view=rev
Log:
Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=50747
Allow the content length header to be set up to the point the response is committed when a
writer is used.

Modified:
    tomcat/trunk/java/org/apache/catalina/connector/Response.java
    tomcat/trunk/webapps/docs/changelog.xml

Modified: tomcat/trunk/java/org/apache/catalina/connector/Response.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/Response.java?rev=1069131&r1=1069130&r2=1069131&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/connector/Response.java (original)
+++ tomcat/trunk/java/org/apache/catalina/connector/Response.java Wed Feb  9 21:56:14 2011
@@ -756,9 +756,6 @@ public class Response
         if (included)
             return;
         
-        if (usingWriter)
-            return;
-        
         coyoteResponse.setContentLength(length);
 
     }

Modified: tomcat/trunk/webapps/docs/changelog.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1069131&r1=1069130&r2=1069131&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Wed Feb  9 21:56:14 2011
@@ -63,6 +63,10 @@
         <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">



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message