At 15:43 15/09/99 , Geir B Hansen wrote:
Does anyone know how i can make zope output a correct content_type=text/html in the http-header of documents when delivered to browsers ?
It works fine if i add a propery called content_type to a document with string value of text/html to the DTML-document in the manage-interface, but i (obviously) do not want to manually add this to all the documents in my site.
thanks .
Zope always will set the Content-type to text/html if it can find a <HTML> tag in your output. It will revert to application/binary if it finds control characters in the output. -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | Tel: +31-35-7502100 Fax: +31-35-7502111 | mailto:mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ------------------------------------------