return 404 on browsing folders with g

This commit is contained in:
ed 2021-09-16 00:17:27 +02:00
parent a6788ffe8d
commit 2ad12b074b

View file

@ -1845,6 +1845,9 @@ class HttpCli(object):
return self.tx_file(abspath)
elif is_dir and not self.can_read and not self.can_write:
return self.tx_404()
srv_info = []
try: