diff --git a/src/Autoindex/Autoindex.cpp b/src/Autoindex/Autoindex.cpp index 5df7ae9..1c9dcfc 100644 --- a/src/Autoindex/Autoindex.cpp +++ b/src/Autoindex/Autoindex.cpp @@ -23,7 +23,7 @@ std::string Autoindex::getPage(std::string path, std::string allpath, std::strin

\n"; if (dir == NULL) { - std::cerr << RED << "AutoindexError: could not open \"" + DBOUT << WARNING << getDebugTime() << FAIL << " AutoindexError: could not open \"" << allpath << "\" directory." << ZERO_C << std::endl; return ""; } diff --git a/src/Autoindex/Autoindex.hpp b/src/Autoindex/Autoindex.hpp index a1da164..059c6b7 100644 --- a/src/Autoindex/Autoindex.hpp +++ b/src/Autoindex/Autoindex.hpp @@ -2,6 +2,7 @@ #define AUTOINDEX_HPP #include "webserv.hpp" +#include "ServerConfig.hpp" class Autoindex {