summaryrefslogtreecommitdiffhomepage
path: root/https.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'https.cpp')
-rw-r--r--https.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/https.cpp b/https.cpp
index f096863..10f76e0 100644
--- a/https.cpp
+++ b/https.cpp
@@ -495,8 +495,8 @@ void load_server_certificate(boost::asio::ssl::context& ctx, const fs::path& cer
boost::asio::ssl::context::single_dh_use);
std::string cert;
- if (cert_path == "") {
- // generate dummy self signed certificate. Will be replaced by real
+ if (cert_path.empty()) {
+ // use dummy self signed certificate. Will be replaced by real
// certificate if configured upon respective session
cert =
"-----BEGIN CERTIFICATE-----\n"