From 503aa6132515c27946e1f679266e2377d37527ab Mon Sep 17 00:00:00 2001 From: yhirose Date: Mon, 20 Sep 2021 17:40:05 -0400 Subject: [PATCH] Fix problem with an empty parameter in set_base_dir --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index 63e5e5a..c57fa31 100644 --- a/httplib.h +++ b/httplib.h @@ -622,7 +622,7 @@ public: Server &Options(const std::string &pattern, Handler handler); bool set_base_dir(const std::string &dir, - const std::string &mount_point = nullptr); + const std::string &mount_point = std::string()); bool set_mount_point(const std::string &mount_point, const std::string &dir, Headers headers = Headers()); bool remove_mount_point(const std::string &mount_point);