[Zope] Text only pages

John Hile johnh@hilgraeve.com
Wed, 10 May 2000 10:34:17 -0400


>
> > 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
>
>
That did the trick. Thanks for the help. This mailing list is great.