minor changes

This commit is contained in:
Talyx
2022-02-01 16:42:38 +03:00
parent 4e673e46fb
commit d63e122778
2 changed files with 11 additions and 11 deletions

View File

@@ -179,7 +179,7 @@ void Request::splitData(char *data)
return ;
else if (!_body_ok)
{
_body += str.substr(0, _received - _headerSize);
_body += str;
if ((_received - _headerSize) == _contentLength)
{
_body_ok = true;