[Zope-Checkins] CVS: Zope/lib/python/ZPublisher - HTTPResponse.py:1.57

Toby Dickenson tdickenson@geminidataloggers.com
Fri, 5 Apr 2002 11:00:17 -0500


Update of /cvs-repository/Zope/lib/python/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv30976/ZPublisher

Modified Files:
	HTTPResponse.py 
Log Message:
Decide whether a body is html by looking at the body we are actually going to use, rather than the body we were originally given. We may have given it an html wrapper a few lines earlier.



=== Zope/lib/python/ZPublisher/HTTPResponse.py 1.56 => 1.57 ===
 
         if not self.headers.has_key('content-type'):
-            isHTML=self.isHTML(body)
+            isHTML=self.isHTML(self.body)
             if isHTML: c='text/html'
             else:      c='text/plain'
             self.setHeader('content-type', c)