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.crypto-aes
parent
328c1e78be
commit
f36975b679
@ -1,4 +1,5 @@
|
||||
google.com ok
|
||||
www.google.com ok
|
||||
api.telegram.org ok
|
||||
api.pushbullet.com ok
|
||||
w9rybpfril.execute-api.ap-southeast-2.amazonaws.com ok
|
||||
|
Loading…
Reference in new issue