From 69738ad24e6c391bb3203c61f06144faedd98809 Mon Sep 17 00:00:00 2001 From: xia-chu <771730766@qq.com> Date: Fri, 15 Mar 2024 22:24:45 +0800 Subject: [PATCH] BugFix: configuration of `downloadRoot` cannot use absolute paths Fix for http api `/index/api/downloadFile` --- server/WebApi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/WebApi.cpp b/server/WebApi.cpp index 669caa06..d0ab2e43 100755 --- a/server/WebApi.cpp +++ b/server/WebApi.cpp @@ -1879,7 +1879,7 @@ void installWebApi() { std::set ret; auto vec = toolkit::split(str, ";"); for (auto &item : vec) { - auto root = File::absolutePath(item, "", true); + auto root = File::absolutePath("", item, true); ret.emplace(std::move(root)); } return ret;