Tester is much better, ready for tests to be added
This commit is contained in:
@@ -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/>
|
||||
|
||||
Reference in New Issue
Block a user