You've already forked cpp-httplib
Changed the order of parameters of set_mounting_point.
This commit is contained in:
@ -122,7 +122,7 @@ int main(int argc, const char **argv) {
|
||||
auto base_dir = "./";
|
||||
if (argc > 2) { base_dir = argv[2]; }
|
||||
|
||||
if (!svr.set_mount_point(base_dir, "/")) {
|
||||
if (!svr.set_mount_point("/", base_dir)) {
|
||||
cout << "The specified base directory doesn't exist...";
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user