From 8629916eceb7696cca0aca490bb67a0f8fa3b3aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Blizi=C5=84ski?= Date: Tue, 23 Jul 2024 15:01:17 +0100 Subject: [PATCH] Define mount point as "/" rather than nullptr. This fixes the stuckness in the newer versions of httplib. I compiled and ran the daemon using https://github.com/yhirose/cpp-httplib/tree/c8bcaf8a913f1ac087b076488e0cbbc272cccd19 which is the newest cpp-httplib version at the time of writing. --- daemon/http_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/http_server.cpp b/daemon/http_server.cpp index ee56d5e..e3f67bd 100644 --- a/daemon/http_server.cpp +++ b/daemon/http_server.cpp @@ -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) {