diff --git a/include/crow/http_connection.h b/include/crow/http_connection.h index 156b565e3..2300757fe 100644 --- a/include/crow/http_connection.h +++ b/include/crow/http_connection.h @@ -262,7 +262,7 @@ namespace crow req_ = std::move(parser_.to_request()); request& req = req_; - req.remoteIpAddress = adaptor_.remote_endpoint().address().to_string(); + req.remote_ip_address = adaptor_.remote_endpoint().address().to_string(); if (parser_.check_version(1, 0)) { diff --git a/include/crow/http_request.h b/include/crow/http_request.h index eb7e902ba..fbd002669 100644 --- a/include/crow/http_request.h +++ b/include/crow/http_request.h @@ -31,7 +31,7 @@ namespace crow query_string url_params; ///< The parameters associated with the request. (everything after the `?`) ci_map headers; std::string body; - std::string remoteIpAddress; ///< The IP address from which the request was sent. + std::string remote_ip_address; ///< The IP address from which the request was sent. void* middleware_context{}; boost::asio::io_service* io_service{};