D3249: wireprotoserver: headers are bytes for us internally, use bytes
This revision was automatically updated to reflect the committed changes. Closed by commit rHG9170df9106a8: wireprotoserver: headers are bytes for us internally, use bytes (authored by durin42, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3249?vs=8013&id=8068 REVISION DETAIL https://phab.mercurial-scm.org/D3249 AFFECTED FILES mercurial/wireprotoserver.py CHANGE DETAILS diff --git a/mercurial/wireprotoserver.py b/mercurial/wireprotoserver.py --- a/mercurial/wireprotoserver.py +++ b/mercurial/wireprotoserver.py @@ -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 To: durin42, #hg-reviewers, indygreg Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
D3249: wireprotoserver: headers are bytes for us internally, use bytes
durin42 created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This re-fixes test-pull-http.t on Python 3. Probably many others as well. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D3249 AFFECTED FILES mercurial/wireprotoserver.py CHANGE DETAILS diff --git a/mercurial/wireprotoserver.py b/mercurial/wireprotoserver.py --- a/mercurial/wireprotoserver.py +++ b/mercurial/wireprotoserver.py @@ -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 To: durin42, #hg-reviewers Cc: mercurial-devel ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel