You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by cz...@apache.org on 2001/08/07 12:56:25 UTC
cvs commit: xml-cocoon2/src/org/apache/cocoon/components/pipeline CachingStreamPipeline.java
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:cziegeler@apache.org">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: webmaster@xml.apache.org
To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org