From dd3fc6e37affdbc8223d8aa0b30adf61df39841f Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 5 May 2026 15:31:41 +0800 Subject: [PATCH] bugfix --- ahserver/url2file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ahserver/url2file.py b/ahserver/url2file.py index 59dacc0..c75e362 100644 --- a/ahserver/url2file.py +++ b/ahserver/url2file.py @@ -53,7 +53,7 @@ class Url2File: ourl = url url = url.split('?')[0] real_path = self.url2ospath(url) - if os.path.isdir(real_path): + if os.path.isdir(real_path) and self.indexes: for idx in self.indexes: p = os.path.join(real_path,idx) if os.path.isfile(p):