Location sorter works, fixed the compilation error i was having on this branch, now working on autoindex
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user