a few more things for location picker

This commit is contained in:
Me
2022-08-11 00:36:24 +02:00
parent 69c1a6f6bf
commit 0b51d13f13
4 changed files with 21 additions and 8 deletions

View File

@@ -52,7 +52,8 @@ void ConfigParser::_post_processing(std::vector<ServerConfig> *servers)
if (it_l->allow_methods == UNKNOWN)
it_l->allow_methods = ANY_METHODS;
if (it_l->index.empty())
// also
if (it_l->index.empty() && it_l->autoindex == false)
it_l->index = it->index;
// nothing to be done for cgi_ext, error_pages, redirect