Show More
@@ -655,7 +655,7 b' class hgweb(object):' | |||||
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 |
|
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() |
@@ -61,7 +61,8 b' class hgwebdir(object):' | |||||
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( |
|
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() |
General Comments 0
You need to be logged in to leave comments.
Login now