comparison mercurial/hgweb/hgwebdir_mod.py @ 3879:9c8488490724

Set charset encoding for hgwebdir, too. (And remove extra spaces in the corresponding place in hgweb)
author Thomas Arendsen Hein <thomas@intevation.de>
date Thu, 14 Dec 2006 16:07:29 +0100
parents f7dee427cd14
children 79e5a6e7c451 40c9710e8182
comparison
equal deleted inserted replaced
3875:729f354f3f09 3879:9c8488490724
59 return self 59 return self
60 wsgicgi.launch(wsgiapplication(make_web_app)) 60 wsgicgi.launch(wsgiapplication(make_web_app))
61 61
62 def run_wsgi(self, req): 62 def run_wsgi(self, req):
63 def header(**map): 63 def header(**map):
64 header_file = cStringIO.StringIO(''.join(tmpl("header", **map))) 64 header_file = cStringIO.StringIO(
65 ''.join(tmpl("header", encoding=util._encoding, **map)))
65 msg = mimetools.Message(header_file, 0) 66 msg = mimetools.Message(header_file, 0)
66 req.header(msg.items()) 67 req.header(msg.items())
67 yield header_file.read() 68 yield header_file.read()
68 69
69 def footer(**map): 70 def footer(**map):