mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +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;
|
std::set<std::string> ret;
|
||||||
auto vec = toolkit::split(str, ";");
|
auto vec = toolkit::split(str, ";");
|
||||||
for (auto &item : vec) {
|
for (auto &item : vec) {
|
||||||
auto root = File::absolutePath(item, "", true);
|
auto root = File::absolutePath("", item, true);
|
||||||
ret.emplace(std::move(root));
|
ret.emplace(std::move(root));
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user