• Damien George's avatar
    tests/net_inet: Update tls test to work with CPython and incl new site. · f36975b6
    Damien George authored
    CPython only supports the server_hostname keyword arg via the SSLContext
    object, so use that instead of the top-level ssl.wrap_socket.  This allows
    the test to run on CPython the same as uPy.
    
    Also add the "Host:" header to correctly make a GET request (for URLs that
    are hosted on other servers).  This is not strictly needed to test the SSL
    connection but helps to debug things when printing the response.
    f36975b6
test_tls_sites.py.exp 129 Bytes