CGI discussion and a little bit of work done

This commit is contained in:
LuckyLaszlo
2022-08-12 18:08:39 +02:00
parent cade79c37f
commit b44acafefe
9 changed files with 61 additions and 59 deletions

View File

@@ -3,7 +3,7 @@
std::string Webserv::_replace_url_root(Client *client, std::string path)
{
std::cerr << "path before = " << client_path << "\n"; // DEBUG
std::cerr << "path before = " << path << "\n"; // DEBUG
if (client->assigned_location->path == "/")
path.insert(0, client->assigned_location->root);
else
@@ -13,7 +13,7 @@ std::string Webserv::_replace_url_root(Client *client, std::string path)
}
// const?
void Webserv::_get(Client *client)
void Webserv::_get(Client *client, std::string &path)
{
@@ -101,7 +101,7 @@ void Webserv::_get_file(Client *client, const std::string &path)
}
// const?
void Webserv::_autoindex(Client *client, std::string &path)
void Webserv::_autoindex(Client *client, const std::string &path)
{
std::cout << "made it to _autoindex\n";