--- lib/python/Products/PageTemplates/ZopePageTemplate.py.orig Fri Aug 30 01:58:53 2002 +++ lib/python/Products/PageTemplates/ZopePageTemplate.py Fri Aug 30 02:00:49 2002 @@ -185,8 +185,9 @@ bound_names['options'] = kw try: - self.REQUEST.RESPONSE.setHeader('content-type', - self.content_type) + response = self.REQUEST.RESPONSE + if not response.headers.has_key('content-type'): + response.setHeader('content-type', self.content_type) except AttributeError: pass security=getSecurityManager() --- lib/python/Products/PageTemplates/PageTemplateFile.py.orig Wed Feb 27 20:13:03 2002 +++ lib/python/Products/PageTemplates/PageTemplateFile.py Fri Aug 30 02:28:44 2002 @@ -83,8 +83,9 @@ bound_names['options'] = kw try: - self.REQUEST.RESPONSE.setHeader('content-type', - self.content_type) + response = self.REQUEST.RESPONSE + if not response.headers.has_key('content-type'): + response.setHeader('content-type', self.content_type) except AttributeError: pass # Execute the template in a new security context.