mercurial/hgweb/common.py
changeset 37734 a1110db1e455
parent 37693 31a0d47d69b3
child 40158 9310037f0636
--- a/mercurial/hgweb/common.py	Fri Apr 13 21:22:05 2018 -0400
+++ b/mercurial/hgweb/common.py	Fri Apr 13 21:01:17 2018 -0400
@@ -133,7 +133,8 @@
 
 def _statusmessage(code):
     responses = httpserver.basehttprequesthandler.responses
-    return responses.get(code, ('Error', 'Unknown error'))[0]
+    return pycompat.bytesurl(
+        responses.get(code, (r'Error', r'Unknown error'))[0])
 
 def statusmessage(code, message=None):
     return '%d %s' % (code, message or _statusmessage(code))