[Zope] content-type weirdness
keo
keo@goa.hu
Sun, 03 Nov 2002 00:38:54 +0100 (CET)
On Sun, 3 Nov 2002, Dieter Maurer wrote:
> keo writes:
> > ....
> > yesterday i had a dtml method working fine, i pasted in another text, and
> > the content-type became application/octet-stream ...
> When you do not set a "Content-Type" header explicitly,
> then ZPublisher tries to guess one:
>
> When it sees binary data, it assumes "application/octet-stream".
>
> Otherwise, it assumes "text". When it sees an "<html>", it uses
> "text/html", otherwise "text/plain".
>
> Usually, Zope objects, especially "File" objects set an explicit
> "Content-Type", guessed when the object is created and modifyable
> with the management interface.
is it possible to hardcode content-type to be text/html for all ZPT and
DTML by default?
then if i send something else i set it myself ...
what counts to be binary for ZPublisher?
k
--
don't believe everything you think