Martin Panter added the comment: I still cannot reproduce any problem. When using set_tunnel(), this is the request sent to the proxy:
b'CONNECT 128.6.42.21:8088 HTTP/1.0\r\n' b'\r\n' This is the SNI and request sent through the proxy to the end server: >>> wrapped = context.wrap_socket(conn, server_side=True) Requested server name '128.6.42.21' >>> for line in wrapped.recv(3000).splitlines(keepends=True): >>> print(repr(line))... b'GET /xx/ HTTP/1.1\r\n' b'Host: 128.6.42.21:8088\r\n' b'Accept-Encoding: identity\r\n' b'\r\n' Can you please provide some code that demonstrates your problem. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26238> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com