diff --git a/src/core/server.cpp b/src/core/server.cpp index 9ab4615..03d9d71 100644 --- a/src/core/server.cpp +++ b/src/core/server.cpp @@ -205,6 +205,11 @@ expresso::core::Server::makeRequest(std::string &request) noexcept(false) { req.tempPath = req.tempPath.substr(0, req.tempPath.size() - 1); } + if (req.method == expresso::enums::method::GET || + req.method == expresso::enums::method::HEAD) { + return; + } + // Setting the body std::string contentType = req.headers["content-type"]; std::string body = request.substr(request.find("\r\n\r\n") + 4);