summaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
Diffstat (limited to 'http')
-rw-r--r--http/http2_connection.hpp4
-rw-r--r--http/http_request.hpp8
2 files changed, 6 insertions, 6 deletions
diff --git a/http/http2_connection.hpp b/http/http2_connection.hpp
index 7903ec93b1..749ac282ef 100644
--- a/http/http2_connection.hpp
+++ b/http/http2_connection.hpp
@@ -38,9 +38,9 @@ namespace crow
struct Http2StreamData
{
- Request req{};
+ Request req;
std::optional<bmcweb::HttpBody::reader> reqReader;
- Response res{};
+ Response res;
std::optional<bmcweb::HttpBody::writer> writer;
};
diff --git a/http/http_request.hpp b/http/http_request.hpp
index ee940d658b..a3c8fd8d0e 100644
--- a/http/http_request.hpp
+++ b/http/http_request.hpp
@@ -22,17 +22,17 @@ struct Request
boost::beast::http::request<bmcweb::HttpBody> req;
private:
- boost::urls::url urlBase{};
+ boost::urls::url urlBase;
public:
bool isSecure{false};
- boost::asio::io_context* ioService{};
- boost::asio::ip::address ipAddress{};
+ boost::asio::io_context* ioService = nullptr;
+ boost::asio::ip::address ipAddress;
std::shared_ptr<persistent_data::UserSession> session;
- std::string userRole{};
+ std::string userRole;
Request(boost::beast::http::request<bmcweb::HttpBody> reqIn,
std::error_code& ec) :
req(std::move(reqIn))