From 1f5f42f21662f39d6a2941e9367047cc127846d8 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 3 Dec 2024 23:53:21 +0000 Subject: [PATCH] fix #121 (GET toplevel files with `h`) --- copyparty/httpcli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 219efda0..48d17676 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -5482,7 +5482,7 @@ def tx_browser(self) -> bool: vrem = vjoin(vrem, fn) abspath = ap2 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 if not is_dir and (self.can_read or self.can_get):