aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro J. Estébanez2018-03-04 01:22:59 +0100
committerPedro J. Estébanez2018-03-04 01:22:59 +0100
commit602da6fa4fbc13255e1b0f6c8748ff0035e96325 (patch)
tree1c6080ea6561f21280b4ee773a7be6c2884b6e3b
parentcf0bc13588a28401058d744abd6673c6974377eb (diff)
downloadgodot-602da6fa4fbc13255e1b0f6c8748ff0035e96325.tar.gz
godot-602da6fa4fbc13255e1b0f6c8748ff0035e96325.tar.zst
godot-602da6fa4fbc13255e1b0f6c8748ff0035e96325.zip
Fix wrong SSL handshake
The name of the remote host is passed to mbed TLS in all cases so the client hello message is correctly formed.
-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 a9eb9466b..4d72f744e 100644
--- a/core/io/http_client.cpp
+++ b/core/io/http_client.cpp
@@ -298,7 +298,7 @@ Error HTTPClient::poll() {
case StreamPeerTCP::STATUS_CONNECTED: {
if (ssl) {
Ref<StreamPeerSSL> ssl = StreamPeerSSL::create();
- Error err = ssl->connect_to_stream(tcp_connection, ssl_verify_host, ssl_verify_host ? conn_host : String());
+ Error err = ssl->connect_to_stream(tcp_connection, ssl_verify_host, conn_host);
if (err != OK) {
close();
status = STATUS_SSL_HANDSHAKE_ERROR;