fixed autoindex

This commit is contained in:
Me
2022-08-11 02:15:40 +02:00
parent c32fc2c8a2
commit 08f6929db9
2 changed files with 6 additions and 7 deletions

View File

@@ -209,6 +209,7 @@ If we get a url that ends in / ignore the last /
return (&(*it));
else if (uri[it->path.size()] == '/')
return (&(*it));
// this works cuz only ever looking for a / burried in a longer path
}
}
return (&(server.locations.back()));