diff --git a/Makefile b/Makefile index 590c0d2..65e7816 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/srcs/webserv/cgi_script.cpp b/srcs/webserv/cgi.cpp similarity index 98% rename from srcs/webserv/cgi_script.cpp rename to srcs/webserv/cgi.cpp index 0d7ee3a..2795f71 100644 --- a/srcs/webserv/cgi_script.cpp +++ b/srcs/webserv/cgi.cpp @@ -106,9 +106,11 @@ void Webserv::_set_env_vector(Client *client, std::vector &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()));