[Zope] REQUEST.setHeader doesn't seem to work?

Dieter Maurer dieter at handshake.de
Fri Aug 12 15:25:30 EDT 2005


Yuan HOng wrote at 2005-8-12 01:57 +0800:
>I have a dtml file on FSDV which should return a file in text/plain
>format. The dtml method starts with:
>
><dtml-call expr="RESPONSE.setHeader('content-type', 'text/plain')">
>... some content ...

We use "setHeader" to set the "content-type" to "text/css" -- and
this works.

It would be surprising when "text/css" would work but "text/plain" not.

> ...
>Where could the problem lie?

Good questions.

>I am using Zope 2.7.6, with Apache
>configured as frontend (with rewrite enabled). Could it be caused by
>Apache?

Unlikely.

You can find out when you access Zope directly (avoiding Apache).
It the content type then correct?

-- 
Dieter


More information about the Zope mailing list