diff mercurial/httppeer.py @ 34699:375c8debe336

httppeer: pass url to urllib as native str, not bytes Differential Revision: https://phab.mercurial-scm.org/D1075
author Augie Fackler <augie@google.com>
date Sat, 14 Oct 2017 14:07:39 -0400
parents a57c938e7ac8
children 6db536bed7ec
line wrap: on
line diff
--- 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)