From ccbfd4b39162a6a320ed400635ebae2992cecd61 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 6 Jan 2023 13:12:45 +0100 Subject: Certificate test --- https.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'https.cpp') 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" -- cgit v1.2.3