autoindex is working, a few things to iron out be we well on our way
This commit is contained in:
@@ -88,11 +88,14 @@ std::string http_methods_to_str(unsigned int methods)
|
||||
return (str);
|
||||
}
|
||||
|
||||
# include <iostream>
|
||||
|
||||
// you could make this &path...
|
||||
int path_is_valid(std::string path)
|
||||
{
|
||||
std::string i_path = path.substr(1);
|
||||
const char *tmp_path = i_path.c_str();
|
||||
// std::string i_path = path.substr(1);
|
||||
// const char *tmp_path = i_path.c_str();
|
||||
const char *tmp_path = path.c_str();
|
||||
struct stat s;
|
||||
|
||||
if (stat(tmp_path, &s) == 0)
|
||||
|
||||
Reference in New Issue
Block a user