changeset 36255:a0a004b29a51

hgweb: correctly bytes-ify status, not string-ify Differential Revision: https://phab.mercurial-scm.org/D2291
author Augie Fackler <augie@google.com>
date Sat, 17 Feb 2018 00:28:55 -0500
parents 84a6e39bc723
children f718e8ec1c82
files mercurial/hgweb/request.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/request.py	Sat Feb 17 00:28:24 2018 -0500
+++ b/mercurial/hgweb/request.py	Sat Feb 17 00:28:55 2018 -0500
@@ -115,7 +115,7 @@
                     self.headers = [(k, v) for (k, v) in self.headers if
                                     k in ('Date', 'ETag', 'Expires',
                                           'Cache-Control', 'Vary')]
-                status = statusmessage(status.code, str(status))
+                status = statusmessage(status.code, pycompat.bytestr(status))
             elif status == 200:
                 status = '200 Script output follows'
             elif isinstance(status, int):