diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2023-05-19 08:40:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-19 08:40:25 +0200 |
commit | 138882742a95366c833b54035ad58a5764856ffa (patch) | |
tree | c8b4e6735ad51daf8c5804463be83ced3700b081 /core | |
parent | 60e8a06d4eec393d0a2fc277bd66f080f55333b6 (diff) | |
parent | 5fe254e8f681f400f2ebab187486998f499387f9 (diff) |
Merge pull request #77202 from YuriSizov/4.0-cherrypicks
Cherry-picks for the 4.0 branch (future 4.0.3) - 5th batch
Diffstat (limited to 'core')
-rw-r--r-- | core/io/http_client_tcp.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/io/http_client_tcp.cpp b/core/io/http_client_tcp.cpp index 3788fa501e..2f45238951 100644 --- a/core/io/http_client_tcp.cpp +++ b/core/io/http_client_tcp.cpp @@ -60,6 +60,7 @@ Error HTTPClientTCP::connect_to_host(const String &p_host, int p_port, Ref<TLSOp } ERR_FAIL_COND_V(tls_options.is_valid() && tls_options->is_server(), ERR_INVALID_PARAMETER); + ERR_FAIL_COND_V_MSG(tls_options.is_valid() && !StreamPeerTLS::is_available(), ERR_UNAVAILABLE, "HTTPS is not available in this build."); ERR_FAIL_COND_V(conn_host.length() < HOST_MIN_LEN, ERR_INVALID_PARAMETER); if (conn_port < 0) { |