Skip to content
This repository was archived by the owner on Apr 30, 2025. It is now read-only.

Commit 503aa61

Browse files
committed
Fix problem with an empty parameter in set_base_dir
1 parent e4c276d commit 503aa61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httplib.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ class Server {
622622
Server &Options(const std::string &pattern, Handler handler);
623623

624624
bool set_base_dir(const std::string &dir,
625-
const std::string &mount_point = nullptr);
625+
const std::string &mount_point = std::string());
626626
bool set_mount_point(const std::string &mount_point, const std::string &dir,
627627
Headers headers = Headers());
628628
bool remove_mount_point(const std::string &mount_point);

0 commit comments

Comments
 (0)