modif and added several scipts for testing cgi
+ modif html page for script tests + script output not added to response in case of http error
This commit is contained in:
@@ -187,6 +187,8 @@ std::string Webserv::_exec_script(Client *client, char **env)
|
||||
void Webserv::_check_script_output(Client *client, std::string & output)
|
||||
{
|
||||
_check_script_status(client, output);
|
||||
if (client->status >= 400 && client->status < 600)
|
||||
return;
|
||||
///*DEBUG*/ std::cout << "\n" B_PURPLE "[script status]:" RESET "\n"; ::print_special(output); std::cout << B_PURPLE "-----------" RESET "\n\n";
|
||||
_check_script_fields(client, output);
|
||||
///*DEBUG*/ std::cout << "\n" B_PURPLE "[script fields]:" RESET "\n"; ::print_special(output); std::cout << B_PURPLE "-----------" RESET "\n\n";
|
||||
|
||||
Reference in New Issue
Block a user