summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Warden <nathan@nathanwarden.com>2017-10-03 13:53:23 -0500
committerNathan Warden <nathan@nathanwarden.com>2017-10-03 13:53:23 -0500
commit310a8eb902e69cadf68272af64d7daa1f8fe1130 (patch)
tree5901b117612efb5f7811b9c1b3341606c3d80aaf
parent545103bfed7fc51123e123952f328a74cfd214df (diff)
Fixed a bug where ssl would force validation even though you told it not to.
-rw-r--r--core/io/http_client.cpp2
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;