CGI discussion and a little bit of work done
This commit is contained in:
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user