[ZPT] Content-type on PageTemplateFile

Thomas Olsen tol@tanghus.dk
Sat, 26 Jan 2002 07:28:06 +0100


Hi Florent

On Friday 25 January 2002 12:01, Florent Guillaume wrote:
> This works for me:
>
> <html>
>    <body>
>    <p tal:define="dummy python:request.RESPONSE.setHeader('Content-Type',
> 'text/plain')"> yo
>    </p>
>   </body>
> </html>

For some reason it doesn't work for me. I could only get the proper content 
type when I changed it in the management interface.

> Even with the Page Template defined as text/html, this renders as
> text/plain.
>

-- 
Regards
Thomas Olsen

http://www.tanghus.dk