File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 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
26292007-02-15 1.3.3
2730Fixed:
Original file line number Diff line number Diff line change @@ -128,6 +128,7 @@ Will Maier,
128128Georges Martin,
129129Gordon McMillan,
130130John F Meinel Jr,
131+ John Mitchell,
131132Ramiro Morales,
132133Toni Mueller,
133134Stefan Niederhauser,
Original file line number Diff line number Diff line change 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' :
You can’t perform that action at this time.
0 commit comments