Browse Source

removed no more used length check

master
nicolas-arnaud 2 years ago
parent
commit
66657f3ee3
  1. 6
      srcs/sock/Client.cpp

6
srcs/sock/Client.cpp

@ -87,12 +87,6 @@ bool Client::getBody(string paquet) {
print_block("Body: ", _body);
return true;
}
string content_length = header_pick("Content_Length:", 0);
if (content_length != "" &&
std::strtoul(content_length.c_str(), 0, 10) <= _body.length()) {
print_block("Body: ", _body);
return true;
}
return false;
}

Loading…
Cancel
Save