You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Carsten Ziegeler <cz...@sundn.de> on 2000/08/03 15:15:48 UTC

C2: Bug in ResourcePipeline.java - Serializer mimeType setting

Hello,

the process() method of the ResourcePipeline class has a bug regarding the mimeType handling of the serializer.

Here is the diff:

Index: ResourcePipeline.java
===================================================================
RCS file: /home/cvspublic/xml-cocoon/src/org/apache/cocoon/sitemap/Attic/ResourcePipeline.java,v
retrieving revision 1.1.2.11
diff -r1.1.2.11 ResourcePipeline.java
155,156c159,161
<             if (serializerMimeType != null)
<                     environment.setContentType (readerMimeType); 
---
>             if (serializerMimeType != null) {
>                     environment.setContentType (serializerMimeType); 
>             }

Together with my other patch from today, the mimeType handling of the serializer works according to the sitemap draft (if I understood it right....)

Regards
Carsten Ziegeler

Open Source Group              sunShine - Lighting up e:Business
================================================================
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de                           mailto:cziegeler@sundn.de 
================================================================

------------------------------------------------------------------------------------------
...this mail was scanned for viruses by mailserver...