diff options
author | Gilles Roudiere <gilles.roudiere@gmail.com> | 2017-10-04 20:40:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-04 20:40:53 +0200 |
commit | 2e6f2ed0325c65c2b623532bb3b7e191064fe937 (patch) | |
tree | d7545a35d1e7bd18fcc011905b4c8b2ff2f66a80 /core/io | |
parent | 5b9b158354c9b3eaa5bcebd726347dd9db704096 (diff) | |
parent | 310a8eb902e69cadf68272af64d7daa1f8fe1130 (diff) |
Merge pull request #11812 from NathanWarden/fix_validate_ssl
Fixed a bug where ssl would force validation even though you told it not to.
Diffstat (limited to 'core/io')
-rw-r--r-- | core/io/http_client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/io/http_client.cpp b/core/io/http_client.cpp index dd56db9bf9..b8c0a2b616 100644 --- a/core/io/http_client.cpp +++ b/core/io/http_client.cpp @@ -297,7 +297,7 @@ Error HTTPClient::poll() { case StreamPeerTCP::STATUS_CONNECTED: { if (ssl) { Ref<StreamPeerSSL> ssl = StreamPeerSSL::create(); - Error err = ssl->connect_to_stream(tcp_connection, true, ssl_verify_host ? conn_host : String()); + Error err = ssl->connect_to_stream(tcp_connection, ssl_verify_host, ssl_verify_host ? conn_host : String()); if (err != OK) { close(); status = STATUS_SSL_HANDSHAKE_ERROR; |