server: fix existing folder endpoints

This commit is contained in:
nym21
2025-06-08 09:10:55 +02:00
parent 6fb6abcbe5
commit 9c2d3e5e26
+1 -1
View File
@@ -43,7 +43,7 @@ fn any_handler(
let mut path = website_path.join(&path);
if !path.exists() {
if !path.exists() || path.is_dir() {
if path.extension().is_some() {
let mut response: Response<Body> = (
StatusCode::INTERNAL_SERVER_ERROR,