Skip to content

Commit 2c9ad5a

Browse files
author
Richard Jones
committed
backport from HEAD
1 parent c39b407 commit 2c9ad5a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Fixed:
66
- mailgw handling of subject-line errors
77
- allow serving of non-"file"-Class file content (eg. paper_file)
88
- allow negative (new) ids in getItem
9+
- fixed content-type when templates are serving up xml (thanks Godefroid
10+
Chapelle)
911

1012

1113
2003-12-17 0.6.4

roundup/cgi/client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: client.py,v 1.130.2.4 2004-01-07 22:44:44 richard Exp $
1+
# $Id: client.py,v 1.130.2.5 2004-01-15 00:05:52 richard Exp $
22

33
__doc__ = """
44
WWW request handler (also used in the stand-alone server).
@@ -518,7 +518,9 @@ def renderContext(self):
518518
}
519519
try:
520520
# let the template render figure stuff out
521-
return pt.render(self, None, None, **args)
521+
result = pt.render(self, None, None, **args)
522+
self.additional_headers['Content-Type'] = pt.content_type
523+
return result
522524
except NoTemplate, message:
523525
return '<strong>%s</strong>'%message
524526
except:

0 commit comments

Comments
 (0)