Index: CMFCore/FSPageTemplate.py =================================================================== RCS file: /cvs-repository/CMF/CMFCore/FSPageTemplate.py,v retrieving revision 1.8.8.3 retrieving revision 1.8.8.5 diff -u -r1.8.8.3 -r1.8.8.5 --- CMFCore/FSPageTemplate.py 1 Aug 2002 19:07:55 -0000 1.8.8.3 +++ CMFCore/FSPageTemplate.py 5 Sep 2002 20:56:18 -0000 1.8.8.5 @@ -159,10 +159,10 @@ response = self.REQUEST.RESPONSE except AttributeError: response = None + # Read file first to get a correct content_type default value. + self._updateFromFS() # call "inherited" result = self._ZPT_exec( bound_names, args, kw ) - if response is not None: - response.setHeader( 'content-type', self.content_type ) return result # Copy over more methods