You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Mark Lundquist <ml...@wrinkledog.com> on 2005/06/22 02:33:09 UTC

HttpHeaderAction broken in 2.1.6?

Hi,

I have an app with the following pipeline:

       <match pattern="admin/download-pub-template">
         <act type="set-header">
           <parameter name="Cache-Control" value="Pragma:no-cache" />
           <parameter
               name="Content-Disposition"
               value="attachment ; filename=pub-template.xslt.xml"
             />
           <call function="publicationDownloadTemplate">
             <parameter
                 name="publicationId"
                 value="{request-param:publication-id}"
               />
           </call>
         </act>
       </match>

In an older instance of the same app using Cocoon 2.1.5, this works 
fine.  LiveHttpHeaders in Firefox shows this reply:

HTTP/1.x 200 OK
Date: Wed, 22 Jun 2005 00:27:36 GMT
Server: Jetty/4.2.19 (Mac OS X/10.3.5 ppc java/1.4.2_05)
X-Cocoon-Version: 2.1.5
content-disposition: attachment ; filename=pub-template.xslt.xml
Cache-Control: Pragma:no-cache
Content-Type: application/force-download
X-Cache: MISS from hilltopfarm-oregon.com
Connection: close
Transfer-Encoding: chunked

But using 2.1.6, that pipeline produces this:

HTTP/1.x 200 OK
Date: Wed, 22 Jun 2005 00:28:57 GMT
Server: Jetty/4.2.19 (Mac OS X/10.3.5 ppc java/1.4.2_05)
X-Cocoon-Version: 2.1.6
Content-Type: text/html; charset=ISO-8859-1
Transfer-Encoding: chunked

Any idea what's going on here?

Thanks,
—ml—