assign server and location to client in _read_request()

This commit is contained in:
LuckyLaszlo
2022-08-07 17:37:24 +02:00
parent 4ab099ee4d
commit 1ccf61bc68
5 changed files with 52 additions and 50 deletions

View File

@@ -7,9 +7,12 @@
Client::Client()
: fd(0),
lsocket(NULL),
status(0),
header_complete(false),
read_body_size(0)
read_body_size(0),
assigned_server(NULL),
assigned_location(NULL)
{
return;
}
@@ -59,6 +62,8 @@ void Client::clear()
clear_request();
header_complete = false;
read_body_size = 0;
assigned_server = NULL;
assigned_location = NULL;
raw_request.clear();
response.clear();
status = 0;