mercurial/httppeer.py
changeset 34699 375c8debe336
parent 34486 a57c938e7ac8
child 34701 6db536bed7ec
--- 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)