Define mount point as "/" rather than nullptr.
This fixes the stuckness in the newer versions of httplib. I compiled
and ran the daemon using
c8bcaf8a91
which is the newest cpp-httplib version at the time of writing.
This commit is contained in:
parent
acbb385516
commit
8629916ece
@ -83,7 +83,7 @@ bool HttpServer::init() {
|
||||
return false;
|
||||
}
|
||||
|
||||
svr_.set_mount_point(nullptr, config_->get_http_base_dir().c_str());
|
||||
svr_.set_mount_point("/", config_->get_http_base_dir().c_str());
|
||||
|
||||
svr_.Get("(/|/Config|/PTP|/Sources|/Sinks|/Browser)",
|
||||
[&](const Request& req, Response& res) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user