# HG changeset patch # User Augie Fackler # Date 2018-04-11 20:10:02 # Node ID 9170df9106a8befb38abfc906ae1ac58e8e4e19f # Parent e320d9405bba1cd8dcc73bf6ecac0e17785ae6c0 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 diff --git a/mercurial/wireprotoserver.py b/mercurial/wireprotoserver.py --- a/mercurial/wireprotoserver.py +++ b/mercurial/wireprotoserver.py @@ -103,7 +103,7 @@ class httpv1protocolhandler(object): 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