comparison mercurial/hgweb/hgweb_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 713e35dcc321
children 79e5a6e7c451 6fa7a2d0fc2e
comparison
equal deleted inserted replaced
3875:729f354f3f09 3879:9c8488490724
653 wsgicgi.launch(wsgiapplication(make_web_app)) 653 wsgicgi.launch(wsgiapplication(make_web_app))
654 654
655 def run_wsgi(self, req): 655 def run_wsgi(self, req):
656 def header(**map): 656 def header(**map):
657 header_file = cStringIO.StringIO( 657 header_file = cStringIO.StringIO(
658 ''.join(self.t("header", encoding = util._encoding, **map))) 658 ''.join(self.t("header", encoding=util._encoding, **map)))
659 msg = mimetools.Message(header_file, 0) 659 msg = mimetools.Message(header_file, 0)
660 req.header(msg.items()) 660 req.header(msg.items())
661 yield header_file.read() 661 yield header_file.read()
662 662
663 def rawfileheader(**map): 663 def rawfileheader(**map):