Show More
@@ -551,6 +551,9 b' web::' | |||
|
551 | 551 | Which template map style to use. |
|
552 | 552 | templates;; |
|
553 | 553 | Where to find the HTML templates. Default is install path. |
|
554 | encoding;; | |
|
555 | Character encoding name. | |
|
556 | Example: "UTF-8" | |
|
554 | 557 | |
|
555 | 558 | |
|
556 | 559 | AUTHOR |
@@ -103,6 +103,7 b' class hgweb(object):' | |||
|
103 | 103 | self.maxshortchanges = int(self.config("web", "maxshortchanges", 60)) |
|
104 | 104 | self.maxfiles = int(self.config("web", "maxfiles", 10)) |
|
105 | 105 | self.allowpull = self.configbool("web", "allowpull", True) |
|
106 | self.encoding = self.config("web", "encoding", util._encoding) | |
|
106 | 107 | |
|
107 | 108 | def archivelist(self, nodeid): |
|
108 | 109 | allowed = self.configlist("web", "allow_archive") |
@@ -655,7 +656,7 b' class hgweb(object):' | |||
|
655 | 656 | def run_wsgi(self, req): |
|
656 | 657 | def header(**map): |
|
657 | 658 | header_file = cStringIO.StringIO( |
|
658 |
''.join(self.t("header", encoding= |
|
|
659 | ''.join(self.t("header", encoding=self.encoding, **map))) | |
|
659 | 660 | msg = mimetools.Message(header_file, 0) |
|
660 | 661 | req.header(msg.items()) |
|
661 | 662 | yield header_file.read() |
General Comments 0
You need to be logged in to leave comments.
Login now