fixed last commit mistake
+ renamed cgi_script.cpp
This commit is contained in:
@@ -106,9 +106,11 @@ void Webserv::_set_env_vector(Client *client, std::vector<std::string> &env_vect
|
||||
env_vector.push_back(_dup_env("CONTENT_TYPE" , client->get_rq_headers("Content-Type")));
|
||||
env_vector.push_back(_dup_env("GATEWAY_INTERFACE" , "CGI/1.1")); // https://www.rfc-editor.org/rfc/rfc387)
|
||||
env_vector.push_back(_dup_env("PATH_INFO" , client->get_rq_script_info()));
|
||||
env_vector.push_back(_dup_env("PATH_TRANSLATED")); // not supported
|
||||
env_vector.push_back(_dup_env("QUERY_STRING" , client->get_rq_query()));
|
||||
env_vector.push_back(_dup_env("REMOTE_ADDR" , client->get_cl_ip()));
|
||||
env_vector.push_back(_dup_env("REMOTE_HOST" , client->get_rq_headers("Host"))); // just tes
|
||||
env_vector.push_back(_dup_env("REMOTE_IDENT")); // authentification not supporte
|
||||
env_vector.push_back(_dup_env("REMOTE_IDENT")); // authentification not supporte
|
||||
env_vector.push_back(_dup_env("REMOTE_USER")); // authentification not supporte
|
||||
env_vector.push_back(_dup_env("REQUEST_METHOD" , client->get_rq_method_str()));
|
||||
env_vector.push_back(_dup_env("SCRIPT_NAME" , client->get_rq_script_path()));
|
||||
Reference in New Issue
Block a user