From 752b5a8010affbf033dbcdfe865289764341b3f0 Mon Sep 17 00:00:00 2001 From: y-syo Date: Tue, 8 Jul 2025 18:33:50 +0200 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=F0=9F=8F=97=EF=B8=8F=E3=80=8D=20wip:?= =?UTF-8?q?=20work=20in=20progress,=20not=20done=20yet.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/Client.cpp | 57 +++++++++++++++++++++++++++++++++++-------- 1 file changed, 47 insertions(+), 10 deletions(-) diff --git a/src/server/Client.cpp b/src/server/Client.cpp index 19d76a9..495f786 100644 --- a/src/server/Client.cpp +++ b/src/server/Client.cpp @@ -6,7 +6,7 @@ /* By: mmoussou error("failed to receive request"); throw std::runtime_error("failed to receive request"); - } - received_data += std::string(buffer, bytes_received); - } while (buffer[bytes_received]); + } + std::cout << "reading passed :thumbsupcat:" << std::endl; + _getRequest(received_data); + std::cout << "request get passed :thumbsupcat:" << std::endl; + if (_request == not_nullptr) return; @@ -125,7 +163,6 @@ void Client::_getRequest(std::string request_str) { _request->setMethod("501"); _log->info("unsupported request received"); } - // set target to correct target with the conf } void Client::answer(void) {