Patchwork D1075: httppeer: pass url to urllib as native str, not bytes

login
register
mail settings
Submitter phabricator
Date Oct. 14, 2017, 9:03 p.m.
Message ID <e4c955b6731bd1ad6e1fb7e22d6ab45a@localhost.localdomain>
Download mbox | patch
Permalink /patch/24917/
State Not Applicable
Headers show

Comments

phabricator - Oct. 14, 2017, 9:03 p.m.
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




To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

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)