Skip to content

Commit

Permalink
HttpsRequest: Set socket hostname from parsed url
Browse files Browse the repository at this point in the history
  • Loading branch information
pennam committed Feb 14, 2023
1 parent 367ca9c commit 0fb960e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/SocketWrapper/src/utility/https_request.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class HttpsRequest : public HttpRequestBase {

_socket = new TLSSocket();
((TLSSocket*)_socket)->open(network);
((TLSSocket*)_socket)->set_hostname(_parsed_url->host());
if (ssl_ca_pem)
((TLSSocket*)_socket)->set_root_ca_cert(ssl_ca_pem);
else
Expand Down

0 comments on commit 0fb960e

Please sign in to comment.