cziegeler 01/08/07 03:56:25 Modified: src/org/apache/cocoon/components/pipeline Tag: cocoon_20_branch CachingStreamPipeline.java Log: The content length was set twice when the CachingStreamPipeline could cache. The second call was too late. This is fixed now. PR: bug 2861 Revision Changes Path No revision No revision 1.3.2.9 +1 -3 xml-cocoon2/src/org/apache/cocoon/components/pipeline/CachingStreamPipeline.java Index: CachingStreamPipeline.java =================================================================== RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/pipeline/CachingStreamPipeline.java,v retrieving revision 1.3.2.8 retrieving revision 1.3.2.9 diff -u -r1.3.2.8 -r1.3.2.9 --- CachingStreamPipeline.java 2001/08/05 16:34:48 1.3.2.8 +++ CachingStreamPipeline.java 2001/08/07 10:56:25 1.3.2.9 @@ -45,7 +45,7 @@ * </ul> * * @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a> - * @version CVS $Revision: 1.3.2.8 $ $Date: 2001/08/05 16:34:48 $ + * @version CVS $Revision: 1.3.2.9 $ $Date: 2001/08/07 10:56:25 $ */ public class CachingStreamPipeline extends AbstractStreamPipeline { @@ -366,8 +366,6 @@ // store the response if (pcKey != null) { byte[] bytes = ((CachingOutputStream)outputStream).getContent(); - environment.setContentLength(bytes.length); - this.streamCache.store(pcKey, new CachedStreamObject(validityObjects, bytes)); } ---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]