diff options
Diffstat (limited to 'http/http_request.hpp')
-rw-r--r-- | http/http_request.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/http/http_request.hpp b/http/http_request.hpp index 44ed2e30f5..fecb9de3fb 100644 --- a/http/http_request.hpp +++ b/http/http_request.hpp @@ -18,7 +18,7 @@ namespace crow struct Request { - boost::beast::http::request<boost::beast::http::string_body>& req; + boost::beast::http::request<boost::beast::http::string_body> req; boost::beast::http::fields& fields; std::string_view url{}; boost::urls::url_view urlView{}; @@ -34,9 +34,9 @@ struct Request std::string userRole{}; Request( - boost::beast::http::request<boost::beast::http::string_body>& reqIn) : - req(reqIn), - fields(reqIn.base()), body(reqIn.body()) + boost::beast::http::request<boost::beast::http::string_body> reqIn) : + req(std::move(reqIn)), + fields(req.base()), body(req.body()) {} boost::beast::http::verb method() const |