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