From d35d1706195a8dc022b5d19e3427e979f356265e Mon Sep 17 00:00:00 2001 From: rey4 Date: Mon, 2 Jun 2003 04:42:30 +0000 Subject: [PATCH] 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 --- lib/sapi.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/sapi.py b/lib/sapi.py index b6bae331..d99f331c 100644 --- a/lib/sapi.py +++ b/lib/sapi.py @@ -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: