[CMF-checkins] CVS: CMF/CMFCore - FSPageTemplate.py:1.13
Florent Guillaume
fg@nuxeo.com
Thu, 5 Sep 2002 14:12:18 -0400
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv17514
Modified Files:
FSPageTemplate.py
Log Message:
Only set the 'content-type' header if one doesn't already exist in the
response.
(Same change as ChrisM's in ZopePageTemplate.py)
=== CMF/CMFCore/FSPageTemplate.py 1.12 => 1.13 ===
--- CMF/CMFCore/FSPageTemplate.py:1.12 Fri Aug 23 13:12:12 2002
+++ CMF/CMFCore/FSPageTemplate.py Thu Sep 5 14:12:18 2002
@@ -164,7 +164,9 @@
# call "inherited"
result = self._ZPT_exec( bound_names, args, kw )
if response is not None:
- response.setHeader( 'content-type', self.content_type )
+ # XXX Why do that again? It's already done by ZopePageTemplate.
+ if not response.headers.has_key('content-type'):
+ response.setHeader('content-type', self.content_type)
return result
# Copy over more methods