summaryrefslogtreecommitdiff
path: root/http/routing.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'http/routing.hpp')
-rw-r--r--http/routing.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/http/routing.hpp b/http/routing.hpp
index 921bfe8dc0..7872b76cb5 100644
--- a/http/routing.hpp
+++ b/http/routing.hpp
@@ -605,7 +605,7 @@ class Router
// appear to work with the std::move on adaptor.
validatePrivilege(
req, asyncResp, rule,
- [&rule, asyncResp, adaptor(std::forward<Adaptor>(adaptor))](
+ [&rule, asyncResp, adaptor = std::forward<Adaptor>(adaptor)](
Request& thisReq) mutable {
rule.handleUpgrade(thisReq, asyncResp, std::move(adaptor));
});