diff -r 6f6e56bb10aa Lib/httplib.py --- a/Lib/httplib.py Tue Oct 21 00:14:39 2014 +0200 +++ b/Lib/httplib.py Thu Oct 23 12:07:24 2014 +0600 @@ -764,7 +764,7 @@ def _tunnel(self): (host, port) = self._get_hostport(self._tunnel_host, self._tunnel_port) - self.send("CONNECT %s:%d HTTP/1.0\r\n" % (host, port)) + self.send("CONNECT %s:%d HTTP/1.1\r\n" % (host, port)) for header, value in self._tunnel_headers.iteritems(): self.send("%s: %s\r\n" % (header, value)) self.send("\r\n")