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-e597b4017df7remotes/tags/1.0.0-rc1
parent
f62fc9bd69
commit
d35d170619
|
@ -259,7 +259,11 @@ class ModPythonServer(ThreadedServer):
|
||||||
import cgi
|
import cgi
|
||||||
|
|
||||||
def header(self, content_type=None, status=None):
|
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:
|
if status is not None:
|
||||||
m = _re_status.match(status)
|
m = _re_status.match(status)
|
||||||
if not m is None:
|
if not m is None:
|
||||||
|
|
Loading…
Reference in New Issue