httppeer: pass url to urllib as native str, not bytes
authorAugie Fackler <augie@google.com>
Sat, 14 Oct 2017 14:07:39 -0400
changeset 34699 375c8debe336
parent 34698 23eb03f46929
child 34700 8e5132ece156
httppeer: pass url to urllib as native str, not bytes Differential Revision: https://phab.mercurial-scm.org/D1075
mercurial/httppeer.py
--- a/mercurial/httppeer.py	Sat Oct 14 13:33:37 2017 +0200
+++ b/mercurial/httppeer.py	Sat Oct 14 14:07:39 2017 -0400
@@ -283,7 +283,7 @@
         if varyheaders:
             headers['Vary'] = ','.join(varyheaders)
 
-        req = self._requestbuilder(cu, data, headers)
+        req = self._requestbuilder(pycompat.strurl(cu), data, headers)
 
         if data is not None:
             self.ui.debug("sending %s bytes\n" % size)