Patchwork D3249: wireprotoserver: headers are bytes for us internally, use bytes

login
register
mail settings
Submitter phabricator
Date April 11, 2018, 8:10 p.m.
Message ID <differential-rev-PHID-DREV-nvjj3kiq24t7ihjpfgc4-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/30739/
State Superseded
Headers show

Comments

phabricator - April 11, 2018, 8:10 p.m.
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




To: durin42, #hg-reviewers
Cc: mercurial-devel

Patch

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