cgi exec compare with file method

This commit is contained in:
hugogogo
2022-08-08 13:20:06 +02:00
parent 78c3ffa456
commit da1f4b6e37
5 changed files with 97 additions and 48 deletions

View File

@@ -147,6 +147,12 @@ void Webserv::_get(Client *client, ServerConfig &server, LocationConfig &locatio
//
if (_is_cgi(client))
{
// DEBUG
std::cout << "\nSCRIPT PATH _________________"
<< "\npath:" << client->get_rq_script_path()
<< "\npath_info:" << client->get_rq_script_info()
<< "\n\n";
_exec_cgi(client);
return;
}