Module: check_mk
Branch: master
Commit: 827e1266984f9f11f21b5abb3ecdc00d3ceed9bc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=827e1266984f9f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Sep 9 13:49:03 2016 +0200
Fixed html_mod_python constructor
---
web/htdocs/html_mod_python.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/html_mod_python.py b/web/htdocs/html_mod_python.py
index e642932..6dad47c 100644
--- a/web/htdocs/html_mod_python.py
+++ b/web/htdocs/html_mod_python.py
@@ -43,6 +43,8 @@ class html_mod_python(htmllib.html):
# is not loaded yet. Earliest place is self.init_modes() where config
# is loaded.
def __init__(self, req, fields):
+ htmllib.html.__init__(self)
+
req.content_type = "text/html; charset=UTF-8"
req.header_sent = False
@@ -51,7 +53,6 @@ class html_mod_python(htmllib.html):
self.myfile = req.uri.split("/")[-1][:-3]
self.req = req
- htmllib.html.__init__(self)
self.user = req.user
if fields:
self.fields = fields