diff roundup/cgi/client.py @ 1968:d8cd2966a385 maint-0.6

backport from HEAD
author Richard Jones <richard@users.sourceforge.net>
date Thu, 15 Jan 2004 00:05:52 +0000
parents f29a7edc31da
children d773a3849139
line wrap: on
line diff
--- a/roundup/cgi/client.py	Thu Jan 08 21:24:46 2004 +0000
+++ b/roundup/cgi/client.py	Thu Jan 15 00:05:52 2004 +0000
@@ -1,4 +1,4 @@
-# $Id: client.py,v 1.130.2.4 2004-01-07 22:44:44 richard Exp $
+# $Id: client.py,v 1.130.2.5 2004-01-15 00:05:52 richard Exp $
 
 __doc__ = """
 WWW request handler (also used in the stand-alone server).
@@ -518,7 +518,9 @@
         }
         try:
             # let the template render figure stuff out
-            return pt.render(self, None, None, **args)
+            result = pt.render(self, None, None, **args)
+            self.additional_headers['Content-Type'] = pt.content_type
+            return result
         except NoTemplate, message:
             return '<strong>%s</strong>'%message
         except:

Roundup Issue Tracker: http://roundup-tracker.org/