changeset 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 23eb03f46929
children 8e5132ece156
files mercurial/httppeer.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)