comparison mercurial/url.py @ 9122:a9eae2f3241c

url: fix use of non-int port in https connections via proxy Complements eef406165507 (issue1725).
author Wagner Bruna <wbruna@softwareexpress.com.br>
date Tue, 14 Jul 2009 17:12:12 -0300
parents eef406165507
children d0474b184347
comparison
equal deleted inserted replaced
9121:a85a3d398cc3 9122:a9eae2f3241c
386 if req.get_selector() == req.get_full_url(): # has proxy 386 if req.get_selector() == req.get_full_url(): # has proxy
387 urlparts = urlparse.urlparse(req.get_selector()) 387 urlparts = urlparse.urlparse(req.get_selector())
388 if urlparts[0] == 'https': # only use CONNECT for HTTPS 388 if urlparts[0] == 'https': # only use CONNECT for HTTPS
389 if ':' in urlparts[1]: 389 if ':' in urlparts[1]:
390 realhost, realport = urlparts[1].split(':') 390 realhost, realport = urlparts[1].split(':')
391 realport = int(realport)
391 else: 392 else:
392 realhost = urlparts[1] 393 realhost = urlparts[1]
393 realport = 443 394 realport = 443
394 395
395 h.realhost = realhost 396 h.realhost = realhost