wireprotoserver: headers are bytes for us internally, use bytes
authorAugie Fackler <augie@google.com>
Wed, 11 Apr 2018 16:10:02 -0400
changeset 37590 9170df9106a8
parent 37589 e320d9405bba
child 37591 b5ca5d34fe8d
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
mercurial/wireprotoserver.py
--- 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