add extern function for http message parsing
+ wip compare fields server and script + g tout cassey
This commit is contained in:
@@ -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)
|
||||
{
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user