On Tue, Jan 13, 2009 at 12:33:18PM +0100, Louis-David Mitterrand wrote:
> Hi,
>
> I'm trying to override the content-type header from a component that is
> supposed to send out xml feed data:
>
> <%init>
> $r->headers_out->set('Content-Type', 'application/xml');
> ....
>
> (this is a top-level component with 'inherit=>undef')
>
> But the default 'text/html' content-type stays on. When trying to set a
> dummy header (say 'X-dummy') it gets added, but it seems apache2 won't
> let Mason change the 'content-type' header.
Oops... just found out that
$r->content_type('application/xml');
works
Cheers,
--
http://www.critikart.net
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users