fixed last commit mistake

+ renamed cgi_script.cpp
This commit is contained in:
lperrey
2022-08-16 02:04:35 +02:00
parent f8c6923c6d
commit 5627b6d1a2
2 changed files with 4 additions and 2 deletions

View File

@@ -29,7 +29,7 @@ SRCS = main.cpp \
extraConfig.cpp \
postProcessing.cpp \
utils.cpp \
cgi_script.cpp \
cgi.cpp \
Client.cpp Client_multipart_body.cpp \
OBJS_D = builds

View File

@@ -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()));