[PATCH STABLE] url: fix use of non-int port in https connections via proxy
Wagner Bruna
wagner.bruna+mercurial at gmail.com
Tue Jul 14 15:50:45 CDT 2009
# HG changeset patch
# User Wagner Bruna <wbruna at softwareexpress.com.br>
# Date 1247602332 10800
# Node ID fbba20a0e732d2b0f48045514e4d5b2d8d072bd9
# Parent 78e54b9f3a629ba3f5200f8e0bcd165b5398b094
url: fix use of non-int port in https connections via proxy
Complements eef406165507 (issue1725).
diff --git a/mercurial/url.py b/mercurial/url.py
--- a/mercurial/url.py
+++ b/mercurial/url.py
@@ -388,6 +388,7 @@
if urlparts[0] == 'https': # only use CONNECT for HTTPS
if ':' in urlparts[1]:
realhost, realport = urlparts[1].split(':')
+ realport = int(realport)
else:
realhost = urlparts[1]
realport = 443
More information about the Mercurial-devel
mailing list