Fixes issue mentioned in #164: remote endpoint address and port was not correctly set. Request::remote_endpoint_address and Request::remote_endpoint_port are now functions instead of variables in order to reduce unnecessary instructions.
This commit is contained in:
parent
b9d4be229f
commit
6e0a1ec9e8
5 changed files with 35 additions and 19 deletions
|
|
@ -152,7 +152,7 @@ int main() {
|
|||
|
||||
asio::io_service io_service;
|
||||
asio::ip::tcp::socket socket(io_service);
|
||||
SimpleWeb::Server<HTTP>::Request request(static_cast<size_t>(-1));
|
||||
SimpleWeb::Server<HTTP>::Request request(static_cast<size_t>(-1), nullptr);
|
||||
{
|
||||
request.query_string = "";
|
||||
auto queries = request.parse_query_string();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue