summaryrefslogtreecommitdiff
path: root/http/http_request.hpp
diff options
context:
space:
mode:
authorEd Tanous <ed@tanous.net>2023-08-25 20:47:44 +0300
committerEd Tanous <ed@tanous.net>2023-09-25 20:51:33 +0300
commitf42e859032d9a28752108b327f02340be4de8de2 (patch)
treecd52a7df4e55cfa02ce11a417a36f13d3706f27c /http/http_request.hpp
parent11e8f60df2fbe1ceafdf886132bd93d112a726bf (diff)
downloadbmcweb-f42e859032d9a28752108b327f02340be4de8de2.tar.xz
Fix http2 stream pointer
Response and Request are now movable, so lets use that to our advantage and make this no longer require a pointer. This removes a couple NOLINT exceptions in our code, and cleans up a lot of places where we could potentially get a nullptr. Tested: enabled http2-experimental option. Loaded service root from redfish in curl with logging enabled, logging verified http/2 was being used. Redfish service validator passes. Curl compiled with http returns service root correctly. Change-Id: I65e11a2311be982df594086413d52838235e1a0c Signed-off-by: Ed Tanous <ed@tanous.net>
Diffstat (limited to 'http/http_request.hpp')
-rw-r--r--http/http_request.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/http/http_request.hpp b/http/http_request.hpp
index cf0f4171c7..e375f2888b 100644
--- a/http/http_request.hpp
+++ b/http/http_request.hpp
@@ -51,8 +51,8 @@ struct Request
Request(const Request& other) = default;
Request(Request&& other) = default;
- Request& operator=(const Request&) = delete;
- Request& operator=(const Request&&) = delete;
+ Request& operator=(const Request&) = default;
+ Request& operator=(Request&&) = default;
~Request() = default;
boost::beast::http::verb method() const