diff options
Diffstat (limited to 'server/src/http_client.cppm')
| -rw-r--r-- | server/src/http_client.cppm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/src/http_client.cppm b/server/src/http_client.cppm index 2047b01..accd5c0 100644 --- a/server/src/http_client.cppm +++ b/server/src/http_client.cppm | |||
| @@ -37,8 +37,9 @@ public: | |||
| 37 | auto host = std::string{req.at(bhttp::field::host)}; | 37 | auto host = std::string{req.at(bhttp::field::host)}; |
| 38 | if (!SSL_set_tlsext_host_name(stream.native_handle(), host.c_str())) | 38 | if (!SSL_set_tlsext_host_name(stream.native_handle(), host.c_str())) |
| 39 | { | 39 | { |
| 40 | throw beast::system_error( | 40 | throw beast::system_error{ |
| 41 | static_cast<int>(::ERR_get_error()), net::error::get_ssl_category()); | 41 | static_cast<int>(::ERR_get_error()), net::error::get_ssl_category() |
| 42 | }; | ||
| 42 | } | 43 | } |
| 43 | stream.set_verify_callback(ssl::host_name_verification(host)); | 44 | stream.set_verify_callback(ssl::host_name_verification(host)); |
| 44 | auto const results = resolver_.resolve(host, "443"); | 45 | auto const results = resolver_.resolve(host, "443"); |