add extern function for http message parsing

+ wip compare fields server and script
+ g tout cassey
This commit is contained in:
hugogogo
2022-08-09 11:19:46 +02:00
parent ae9a9b37f1
commit 3dad938e3c
13 changed files with 225 additions and 86 deletions

View File

@@ -145,10 +145,12 @@ void Webserv::_get(Client *client, ServerConfig &server, LocationConfig &locatio
// TMP HUGO
//
std::string script_output;
if (_is_cgi(client))
{
_exec_cgi(client);
_response_correction(client);
script_output = _exec_cgi(client);
_check_script_output(client, script_output);
std::cout << "_____________status:" << client->status << "\n";
return;
}
//
@@ -224,12 +226,6 @@ void Webserv::_get_file(Client *client, const std::string &path)
}
}
// WIP HUGO
void Webserv::_response_correction(Client *client)
{
(void)client;
}
void Webserv::_append_body(Client *client, const char *body, size_t body_size, const std::string &file_extension)
{
/*