D1075: httppeer: pass url to urllib as native str, not bytes
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Sat Oct 14 21:03:22 UTC 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG375c8debe336: httppeer: pass url to urllib as native str, not bytes (authored by durin42, committed by ).
CHANGED PRIOR TO COMMIT
https://phab.mercurial-scm.org/D1075?vs=2739&id=2750#toc
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D1075?vs=2739&id=2750
REVISION DETAIL
https://phab.mercurial-scm.org/D1075
AFFECTED FILES
mercurial/httppeer.py
CHANGE DETAILS
diff --git a/mercurial/httppeer.py b/mercurial/httppeer.py
--- a/mercurial/httppeer.py
+++ b/mercurial/httppeer.py
@@ -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)
To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list