Skip to content

Commit

Permalink
fix #121 (GET toplevel files with h)
Browse files Browse the repository at this point in the history
  • Loading branch information
9001 committed Dec 3, 2024
1 parent 9082c47 commit 1f5f42f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion copyparty/httpcli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 1f5f42f

Please sign in to comment.