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: