2 Nov
2002
2 Nov
'02
11:30 p.m.
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. Dieter