mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-18 11:09:39 +00:00
Add another missing std::move for _base_dirs vector (#2314)
This commit is contained in:
1 parent
f0990ca96d
commit
25688258ad
1 file changed
+1
-1
@@ -8540,7 +8540,7 @@ inline bool Server::set_mount_point(const std::string &mount_point,
|
||||
if (stat.is_dir()) {
|
||||
std::string mnt = !mount_point.empty() ? mount_point : "/";
|
||||
if (!mnt.empty() && mnt[0] == '/') {
|
||||
base_dirs_.push_back({mnt, dir, std::move(headers)});
|
||||
base_dirs_.push_back({std::move(mnt), dir, std::move(headers)});
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user