cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gkossakow...@apache.org
Subject svn commit: r689817 - /cocoon/trunk/subprojects/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/HttpServletResponseBufferingWrapper.java
Date Thu, 28 Aug 2008 13:40:58 GMT
Author: gkossakowski
Date: Thu Aug 28 06:40:57 2008
New Revision: 689817

URL: http://svn.apache.org/viewvc?rev=689817&view=rev
Log:
If there is nothing to write don't try to write it. Some times it could lead to IllegalStateException.

Modified:
    cocoon/trunk/subprojects/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/HttpServletResponseBufferingWrapper.java

Modified: cocoon/trunk/subprojects/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/HttpServletResponseBufferingWrapper.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/subprojects/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/HttpServletResponseBufferingWrapper.java?rev=689817&r1=689816&r2=689817&view=diff
==============================================================================
--- cocoon/trunk/subprojects/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/HttpServletResponseBufferingWrapper.java
(original)
+++ cocoon/trunk/subprojects/cocoon-servlet-service/cocoon-servlet-service-impl/src/main/java/org/apache/cocoon/servletservice/HttpServletResponseBufferingWrapper.java
Thu Aug 28 06:40:57 2008
@@ -298,7 +298,8 @@
         }
 
         public void writeTo(OutputStream outputStream) throws IOException {
-            this.outputStream.writeTo(outputStream);
+            if (this.outputStream.size() > 0)
+                this.outputStream.writeTo(outputStream);
         }
         
         private boolean isForwarding() {



Mime
View raw message