From 66657f3ee39d60d8d3b67d2992336bf1635e9680 Mon Sep 17 00:00:00 2001 From: nicolas-arnaud Date: Sun, 13 Nov 2022 15:21:30 +0100 Subject: [PATCH] removed no more used length check --- srcs/sock/Client.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/srcs/sock/Client.cpp b/srcs/sock/Client.cpp index f31c5ca..915a9bb 100644 --- a/srcs/sock/Client.cpp +++ b/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; }