mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
BugFix: configuration of downloadRoot
cannot use absolute paths
Fix for http api `/index/api/downloadFile`
This commit is contained in:
parent
50f65c4ba4
commit
69738ad24e
@ -1879,7 +1879,7 @@ void installWebApi() {
|
||||
std::set<std::string> 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;
|
||||
|
Loading…
Reference in New Issue
Block a user