[Zope] http-header application/octet-stream vs. text/html

Geir B Hansen geirh@funcom.com
Thu, 16 Sep 1999 11:09:24 +0200


it seems to me  that Zope returns Content-Type=application/octet-stream
in the HTTP-header when documents start with anything but <HTML>.
For documents starting with <HTML> i get a nice and correct :

HTTP/1.1 200 OK
Date: Thu, 16 Sep 1999 08:29:09 GMT
Server: Apache/1.3.9 (Unix) mod_perl/1.21 mod_ssl/2.4.2 OpenSSL/0.9.4
mod_fastcgi/2.2.2
Connection: close
Ms-Author-Via: DAV
X-Powered-By: Zope (www.zope.org), Python (www.python.org)
Content-Length: 94
Last-Modified: Thu, 16 Sep 1999 08:25:07 GMT
Content-Type: text/html

...
Problem is :  I want my returned documents to be correct and to the
specs (www.w3.org) , and that requires me to have a DTD at the top ,
like :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">

--
seems to me like the DTD makes zope return
Content-Type=application/octet-stream instead of 'text/html'..

Have anyone else encountered this problem, and found a solution ??

Thanks !

------------------------------------------------
          Geir B Hansen
      geirh@funcom.com
Web-designer / Graphic artist
          Funcom Oslo
------------------------------------------------