clean comment and stuff
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
#include "Webserv.hpp"
|
||||
#define MAX_FILESIZE 1 * MB // unused
|
||||
|
||||
// const?
|
||||
/*
|
||||
https://www.rfc-editor.org/rfc/rfc9110.html#name-get
|
||||
*/
|
||||
@@ -84,7 +83,11 @@ if (size > MAX_FILESIZE)
|
||||
*/
|
||||
|
||||
|
||||
// const?
|
||||
/*
|
||||
<a href="http://nginx.org/">nginx.org</a>.<br/>
|
||||
<a href="/test/test_deeper/index1.html">index1.html</a>
|
||||
<a href="/test/test_deeper/..">..</a>
|
||||
*/
|
||||
void Webserv::_autoindex(Client *client, const std::string &path)
|
||||
{
|
||||
std::cout << "_autoindex()\n";
|
||||
@@ -93,7 +96,6 @@ void Webserv::_autoindex(Client *client, const std::string &path)
|
||||
DIR *dir;
|
||||
struct dirent *ent;
|
||||
|
||||
// std::cout << "Path in auto is: " << path << '\n';
|
||||
if ( (dir = opendir(path.c_str()) ) != NULL)
|
||||
{
|
||||
dir_list.append(AUTOINDEX_START);
|
||||
@@ -117,13 +119,6 @@ void Webserv::_autoindex(Client *client, const std::string &path)
|
||||
dir_list.append("</a>");
|
||||
dir_list.append("\n");
|
||||
}
|
||||
|
||||
// <a href="http://nginx.org/">nginx.org</a>.<br/>
|
||||
// <a href="/test/test_deeper/index1.html">index1.html</a>
|
||||
|
||||
// apparently this is more than good enough!
|
||||
// <a href="/test/test_deeper/..">..</a>
|
||||
|
||||
dir_list.append(AUTOINDEX_END);
|
||||
closedir (dir);
|
||||
client->status = 200;
|
||||
|
||||
Reference in New Issue
Block a user