Skip to content

Commit 0fb960e

Browse files
committed
HttpsRequest: Set socket hostname from parsed url
1 parent 367ca9c commit 0fb960e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/SocketWrapper/src/utility/https_request.h

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class HttpsRequest : public HttpRequestBase {
6161

6262
_socket = new TLSSocket();
6363
((TLSSocket*)_socket)->open(network);
64+
((TLSSocket*)_socket)->set_hostname(_parsed_url->host());
6465
if (ssl_ca_pem)
6566
((TLSSocket*)_socket)->set_root_ca_cert(ssl_ca_pem);
6667
else

0 commit comments

Comments
 (0)