Patchwork D2598: httpconnection: convert url to bytes in readauthforuri

login
register
mail settings
Submitter phabricator
Date March 3, 2018, 8:15 p.m.
Message ID <8700b7d50b2999f7210b8309ce1f561c@localhost.localdomain>
Download mbox | patch
Permalink /patch/28825/
State Not Applicable
Headers show

Comments

phabricator - March 3, 2018, 8:15 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG6b1eb4c610b4: httpconnection: convert url to bytes in readauthforuri (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2598?vs=6450&id=6462

REVISION DETAIL
  https://phab.mercurial-scm.org/D2598

AFFECTED FILES
  mercurial/httpconnection.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/httpconnection.py b/mercurial/httpconnection.py
--- a/mercurial/httpconnection.py
+++ b/mercurial/httpconnection.py
@@ -14,6 +14,7 @@ 
 
 from .i18n import _
 from . import (
+    pycompat,
     util,
 )
 
@@ -62,6 +63,7 @@ 
 
 # moved here from url.py to avoid a cycle
 def readauthforuri(ui, uri, user):
+    uri = pycompat.bytesurl(uri)
     # Read configuration
     groups = {}
     for key, val in ui.configitems('auth'):