fix #121 (GET toplevel files with h)

This commit is contained in:
ed 2024-12-03 23:53:21 +00:00
parent 9082c4702f
commit 1f5f42f216

View file

@ -5482,7 +5482,7 @@ class HttpCli(object):
vrem = vjoin(vrem, fn) vrem = vjoin(vrem, fn)
abspath = ap2 abspath = ap2
break break
elif self.vpath.rsplit("/", 1)[1] in ("index.htm", "index.html"): elif self.vpath.rsplit("/", 1)[-1] in ("index.htm", "index.html"):
fk_pass = True fk_pass = True
if not is_dir and (self.can_read or self.can_get): if not is_dir and (self.can_read or self.can_get):