Merge branch '#146_add_ip_address_field'

This commit is contained in:
Igor Mróz 2018-09-28 21:24:06 +02:00
commit 741ba25abf
2 changed files with 3 additions and 0 deletions

View File

@ -257,6 +257,8 @@ namespace crow
req_ = std::move(parser_.to_request());
request& req = req_;
req.remoteIpAddress = adaptor_.remote_endpoint().address().to_string();
if (parser_.check_version(1, 0))
{
// HTTP/1.0

View File

@ -29,6 +29,7 @@ namespace crow
query_string url_params;
ci_map headers;
std::string body;
std::string remoteIpAddress;
void* middleware_context{};
boost::asio::io_service* io_service{};