# HG changeset patch # User Augie Fackler # Date 2017-10-14 15:59:51 # Node ID 9c3dcaf648efb7c1fd26989f227f9cd4948ac44f # Parent b13c95919ff5ad253153c676671a5a08421ad1e0 httppeer: convert request url back to bytes before inspecting it Differential Revision: https://phab.mercurial-scm.org/D1089 diff --git a/mercurial/httppeer.py b/mercurial/httppeer.py --- a/mercurial/httppeer.py +++ b/mercurial/httppeer.py @@ -303,7 +303,7 @@ class httppeer(wireproto.wirepeer): _wraphttpresponse(resp) # record the url we got redirected to - resp_url = resp.geturl() + resp_url = pycompat.bytesurl(resp.geturl()) if resp_url.endswith(qs): resp_url = resp_url[:-len(qs)] if self._url.rstrip('/') != resp_url.rstrip('/'):