Location sorter works, fixed the compilation error i was having on this branch, now working on autoindex

This commit is contained in:
Me
2022-08-07 03:24:49 +02:00
parent 4b1baca126
commit 4870b2c05d
6 changed files with 45 additions and 53 deletions

View File

@@ -61,7 +61,8 @@ http_method str_to_http_method(std::string &str)
else if (str == "DELETE")
return DELETE;
else if (str == "ALL_METHODS")
return ALL_METHODS;
return ANY_METHODS;
// would prefere ALL_METHODS
return UNKNOWN;
}
@@ -87,6 +88,7 @@ std::string http_methods_to_str(unsigned int methods)
return (str);
}
// you could make this &path...
int path_is_valid(std::string path)
{
std::string i_path = path.substr(1);