mercurial/hgweb/server.py
changeset 38594 b263133eeb5a
parent 38298 af0e88e64ede
child 39827 a6088d10d5f2
--- a/mercurial/hgweb/server.py	Sun Jul 08 16:45:40 2018 +0900
+++ b/mercurial/hgweb/server.py	Sun Jul 08 16:55:21 2018 +0900
@@ -246,7 +246,7 @@
 
     def version_string(self):
         if self.server.serverheader:
-            return self.server.serverheader
+            return encoding.strfromlocal(self.server.serverheader)
         return httpservermod.basehttprequesthandler.version_string(self)
 
 class _httprequesthandlerssl(_httprequesthandler):