From 2ad12b074b9745db2f728780c89dac7198e79c2f Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 16 Sep 2021 00:17:27 +0200 Subject: [PATCH] return 404 on browsing folders with g --- copyparty/httpcli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index dbc77327..d350f8ce 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -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: