explicitly set mod_python's default content-type to text/html to prevent

it from automatically deducing different values


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@654 8cb11bc2-c004-0410-86c3-e597b4017df7
remotes/tags/1.0.0-rc1
rey4 2003-06-02 04:42:30 +00:00
parent f62fc9bd69
commit d35d170619
1 changed files with 5 additions and 1 deletions

View File

@ -259,7 +259,11 @@ class ModPythonServer(ThreadedServer):
import cgi
def header(self, content_type=None, status=None):
if content_type is not None: self.request.content_type = content_type
if content_type is None:
self.request.content_type = 'text/html'
else:
self.request.content_type = content_type
if status is not None:
m = _re_status.match(status)
if not m is None: