From 25688258ad7a557047371546feec34768ce86e82 Mon Sep 17 00:00:00 2001 From: Aaron Gokaslan Date: Mon, 22 Dec 2025 20:43:46 -0500 Subject: [PATCH] Add another missing std::move for _base_dirs vector (#2314) --- httplib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httplib.h b/httplib.h index a891966..04a8fe2 100644 --- a/httplib.h +++ b/httplib.h @@ -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; } }