Skip to content

Commit aff8806

Browse files
author
Richard Jones
committed
Enabled over-riding of content-type in web interface (thanks John Mitchell)
1 parent eaa9110 commit aff8806

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ Fixed:
2222
reindexing.
2323
- Turning off indexing for content properties of FileClass instance
2424
(e.g., "file" and "msg") now works for SQL backends.
25+
- Enabled over-riding of content-type in web interface (thanks
26+
John Mitchell)
27+
2528

2629
2007-02-15 1.3.3
2730
Fixed:

doc/index.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ Will Maier,
128128
Georges Martin,
129129
Gordon McMillan,
130130
John F Meinel Jr,
131+
John Mitchell,
131132
Ramiro Morales,
132133
Toni Mueller,
133134
Stefan Niederhauser,

roundup/cgi/client.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: client.py,v 1.233 2007-01-16 10:16:08 schlatterbeck Exp $
1+
# $Id: client.py,v 1.234 2007-08-27 10:27:31 richard Exp $
22

33
"""WWW request handler (also used in the stand-alone server).
44
"""
@@ -865,8 +865,9 @@ def write(self, content):
865865
def write_html(self, content):
866866
if not self.headers_done:
867867
# at this point, we are sure about Content-Type
868-
self.additional_headers['Content-Type'] = \
869-
'text/html; charset=%s' % self.charset
868+
if not self.additional_headers.has_key('Content-Type'):
869+
self.additional_headers['Content-Type'] = \
870+
'text/html; charset=%s' % self.charset
870871
self.header()
871872

872873
if self.env['REQUEST_METHOD'] == 'HEAD':

0 commit comments

Comments
 (0)