[Zope] Text only pages

Morten W. Petersen morten@src.no
Wed, 10 May 2000 15:02:45 +0200 (CEST)


> but it has no effect. Anyone know what's going
> on and how we can suppress it?
> 

It may be a bug, because lib/python/ZPublisher and ZServer/HTTPResponse.py
search for content-type using lowercase:

        if body:
            isHTML=self.isHTML(body)
            if not headers.has_key('content-type'):
                if isHTML:
                    c='text/html'
                else:
                    c='text/plain'
                self.setHeader('content-type',c)

Who knows? (try to set the content type with lowercase letters) and tell
us how it went.

-Morten