changeset 34724:9c3dcaf648ef

httppeer: convert request url back to bytes before inspecting it Differential Revision: https://phab.mercurial-scm.org/D1089
author Augie Fackler <augie@google.com>
date Sat, 14 Oct 2017 11:59:51 -0400
parents b13c95919ff5
children a288712d86d5
files mercurial/httppeer.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/httppeer.py	Sat Oct 14 11:30:17 2017 -0400
+++ b/mercurial/httppeer.py	Sat Oct 14 11:59:51 2017 -0400
@@ -303,7 +303,7 @@
         _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('/'):