Merge pull request #11812 from NathanWarden/fix_validate_ssl

Fixed a bug where ssl would force validation even though you told it not to.
This commit is contained in:
Gilles Roudiere 2017-10-04 20:40:53 +02:00 committed by GitHub
commit 2e6f2ed032
1 changed files with 1 additions and 1 deletions

View File

@ -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;