content_type=text/html ??
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 . ------------------------------------------------ Geir B Hansen geirh@funcom.com Web-designer / Graphic artist Funcom Oslo ------------------------------------------------
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 ------------------------------------------
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
hmm.. strange .. my standard_html_header contains a <HTML> tag, although after the DTD, but i suppose that wouldn't be it.. Zope still outputs content_type=application/octet-stream, unless i add a content_type property in the manage interface.. ------------------------------------------------ Geir B Hansen geirh@funcom.com Web-designer / Graphic artist Funcom Oslo ------------------------------------------------
participants (2)
-
Geir B Hansen -
Martijn Pieters