mercurial/url.py
changeset 43106 d783f945a701
parent 43089 c59eb1560c44
child 43506 9f70512ae2cf
equal deleted inserted replaced
43105:649d3ac37a12 43106:d783f945a701
   230             for x in self.headers
   230             for x in self.headers
   231             if x.lower().startswith(r'proxy-')
   231             if x.lower().startswith(r'proxy-')
   232         ]
   232         ]
   233     )
   233     )
   234     self.send(b'CONNECT %s HTTP/1.0\r\n' % self.realhostport)
   234     self.send(b'CONNECT %s HTTP/1.0\r\n' % self.realhostport)
   235     for header in proxyheaders.iteritems():
   235     for header in pycompat.iteritems(proxyheaders):
   236         self.send(b'%s: %s\r\n' % header)
   236         self.send(b'%s: %s\r\n' % header)
   237     self.send(b'\r\n')
   237     self.send(b'\r\n')
   238 
   238 
   239     # majority of the following code is duplicated from
   239     # majority of the following code is duplicated from
   240     # httplib.HTTPConnection as there are no adequate places to
   240     # httplib.HTTPConnection as there are no adequate places to