From c48b169c658560aa4ecc6da15bb29f5753e1deae Mon Sep 17 00:00:00 2001 From: Quinten Date: Wed, 29 Oct 2025 16:48:41 +0100 Subject: [PATCH] remove unsed cgi env in uri --- webserv/handler/URI.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/webserv/handler/URI.cpp b/webserv/handler/URI.cpp index 48a6b85..611d4bb 100644 --- a/webserv/handler/URI.cpp +++ b/webserv/handler/URI.cpp @@ -130,29 +130,6 @@ void URI::parseFullpath() fullPath_ = FileUtils::joinPath(dir_, baseName_); } -// std::map URI::getCGIEnvironment() const -// { -// std::map env; - -// // URI components -// env["REQUEST_URI"] = uriTrimmed_; -// env["SCRIPT_NAME"] = getFullPath(); -// env["PATH_INFO"] = getPathInfo(); -// env["QUERY_STRING"] = getQuery(); - -// // Authority components -// env["SERVER_NAME"] = config_->get("server_name").value_or(""); -// env["SERVER_PORT"] = std::to_string(config_->get("listen").value_or(-1)); -// env["REQUEST_SCHEME"] = "HTTP"; - -// // HTTP context -// // env["REQUEST_METHOD"] = requestMethod_; -// // env["CONTENT_TYPE"] = contentType_; -// // env["CONTENT_LENGTH"] = contentLength_; - -// return env; -// } - const AConfig *URI::getConfig() const noexcept { return config_;