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:
Maciej Bliziński 2024-07-23 15:01:17 +01:00
parent acbb385516
commit 8629916ece
No known key found for this signature in database
GPG Key ID: B1234ED6A2A7401B

View File

@ -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) {