Mercurial > hg-stable
changeset 37590:9170df9106a8
wireprotoserver: headers are bytes for us internally, use bytes
This re-fixes test-pull-http.t on Python 3. Probably many others as well.
Differential Revision: https://phab.mercurial-scm.org/D3249
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 11 Apr 2018 16:10:02 -0400 |
parents | e320d9405bba |
children | b5ca5d34fe8d |
files | mercurial/wireprotoserver.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/wireprotoserver.py Wed Apr 11 16:09:23 2018 -0400 +++ b/mercurial/wireprotoserver.py Wed Apr 11 16:10:02 2018 -0400 @@ -103,7 +103,7 @@ def getprotocaps(self): if self._protocaps is None: - value = decodevaluefromheaders(self._req, r'X-HgProto') + value = decodevaluefromheaders(self._req, b'X-HgProto') self._protocaps = set(value.split(' ')) return self._protocaps