mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
Merge branch '#146_add_ip_address_field'
This commit is contained in:
commit
741ba25abf
@ -257,6 +257,8 @@ namespace crow
|
|||||||
req_ = std::move(parser_.to_request());
|
req_ = std::move(parser_.to_request());
|
||||||
request& req = req_;
|
request& req = req_;
|
||||||
|
|
||||||
|
req.remoteIpAddress = adaptor_.remote_endpoint().address().to_string();
|
||||||
|
|
||||||
if (parser_.check_version(1, 0))
|
if (parser_.check_version(1, 0))
|
||||||
{
|
{
|
||||||
// HTTP/1.0
|
// HTTP/1.0
|
||||||
|
@ -29,6 +29,7 @@ namespace crow
|
|||||||
query_string url_params;
|
query_string url_params;
|
||||||
ci_map headers;
|
ci_map headers;
|
||||||
std::string body;
|
std::string body;
|
||||||
|
std::string remoteIpAddress;
|
||||||
|
|
||||||
void* middleware_context{};
|
void* middleware_context{};
|
||||||
boost::asio::io_service* io_service{};
|
boost::asio::io_service* io_service{};
|
||||||
|
Loading…
Reference in New Issue
Block a user