mercurial/url.py
branchstable
changeset 44783 a50f33f1ff24
parent 44641 e74af49aa3c9
child 45759 ff48eea4a926
equal deleted inserted replaced
44782:3d5fb6cab832 44783:a50f33f1ff24
   223     h.headers = None
   223     h.headers = None
   224 
   224 
   225 
   225 
   226 def _generic_proxytunnel(self):
   226 def _generic_proxytunnel(self):
   227     proxyheaders = {
   227     proxyheaders = {
   228         x: self.headers[x]
   228         pycompat.bytestr(x): pycompat.bytestr(self.headers[x])
   229         for x in self.headers
   229         for x in self.headers
   230         if x.lower().startswith('proxy-')
   230         if x.lower().startswith('proxy-')
   231     }
   231     }
   232     self.send(b'CONNECT %s HTTP/1.0\r\n' % self.realhostport)
   232     self.send(b'CONNECT %s HTTP/1.0\r\n' % self.realhostport)
   233     for header in pycompat.iteritems(proxyheaders):
   233     for header in pycompat.iteritems(proxyheaders):