浏览代码

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.
Pedro J. Estébanez 7 年之前
父节点
当前提交
602da6fa4f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/io/http_client.cpp

+ 1 - 1
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;