diff options
author | Damien George <damien.p.george@gmail.com> | 2017-10-26 12:29:24 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-10-26 12:29:24 +1100 |
commit | f36975b6792f6b702dc9184adcdb6e0d89ce23b4 (patch) | |
tree | 64255a834249142b0183bf7b038fe4f39e0f3c67 /py/stackctrl.c | |
parent | 328c1e78be68a386fe6fb5940027aad887c823a4 (diff) | |
download | micropython-f36975b6792f6b702dc9184adcdb6e0d89ce23b4.tar.gz micropython-f36975b6792f6b702dc9184adcdb6e0d89ce23b4.zip |
tests/net_inet: Update tls test to work with CPython and incl new site.
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.
Diffstat (limited to 'py/stackctrl.c')
0 files changed, 0 insertions, 0 deletions