equal
deleted
inserted
replaced
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): |