summaryrefslogtreecommitdiff
path: root/http/app.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'http/app.hpp')
-rw-r--r--http/app.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/http/app.hpp b/http/app.hpp
index eea13058e1..29cb4de9eb 100644
--- a/http/app.hpp
+++ b/http/app.hpp
@@ -54,14 +54,14 @@ class App
App& operator=(const App&&) = delete;
template <typename Adaptor>
- void handleUpgrade(Request& req,
+ void handleUpgrade(const std::shared_ptr<Request>& req,
const std::shared_ptr<bmcweb::AsyncResp>& asyncResp,
Adaptor&& adaptor)
{
router.handleUpgrade(req, asyncResp, std::forward<Adaptor>(adaptor));
}
- void handle(Request& req,
+ void handle(const std::shared_ptr<Request>& req,
const std::shared_ptr<bmcweb::AsyncResp>& asyncResp)
{
router.handle(req, asyncResp);