cziegeler 01/08/07 03:56:50
Modified: src/org/apache/cocoon/components/pipeline
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
1.10 +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.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- CachingStreamPipeline.java 2001/08/05 16:33:27 1.9
+++ CachingStreamPipeline.java 2001/08/07 10:56:49 1.10
@@ -45,7 +45,7 @@
* </ul>
*
* @author <a href="mailto:[EMAIL PROTECTED]">Carsten Ziegeler</a>
- * @version CVS $Revision: 1.9 $ $Date: 2001/08/05 16:33:27 $
+ * @version CVS $Revision: 1.10 $ $Date: 2001/08/07 10:56:49 $
*/
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]