Tester is much better, ready for tests to be added

This commit is contained in:
Eric LAZO
2022-08-16 00:26:28 +02:00
parent 54b6d1f6d6
commit 973388bf97
42 changed files with 1387 additions and 204828 deletions

View File

@@ -124,7 +124,7 @@ void Webserv::_autoindex(Client *client, const std::string &path)
// std::cout << "ent: " << ent->d_name << '\n';
if (strcmp(".", ent->d_name) == 0)
continue ;
dir_list.append("<a href=\"");
dir_list.append("<a style=\"font-size:1.5em\" href=\"");
// dir_list.append(client->get_rq_target());
dir_list.append(client->get_rq_abs_path());
if (dir_list[dir_list.size() - 1] != '/')
@@ -133,7 +133,7 @@ void Webserv::_autoindex(Client *client, const std::string &path)
dir_list.append("\">");
dir_list.append(ent->d_name);
dir_list.append("</a>");
dir_list.append("\r\n"); // is this right?
dir_list.append("\n");
}
// <a href="http://nginx.org/">nginx.org</a>.<br/>