wip script output verification working

+ trim secure pos segfault
+ concat script message with server message
This commit is contained in:
hugogogo
2022-08-09 14:57:05 +02:00
parent 3dad938e3c
commit 53a548e314
7 changed files with 65 additions and 17 deletions

View File

@@ -149,8 +149,11 @@ void Webserv::_get(Client *client, ServerConfig &server, LocationConfig &locatio
if (_is_cgi(client))
{
script_output = _exec_cgi(client);
// DEBUG
std::cout << "\n____script_output____\n" << script_output << "\n_______________\n";
// wip check output of script
_check_script_output(client, script_output);
std::cout << "_____________status:" << client->status << "\n";
client->response += script_output;
return;
}
//