Skip to content

Commit

Permalink
Respond not found when no directories can match the url which ends wi…
Browse files Browse the repository at this point in the history
…th ".zip".
  • Loading branch information
beavailable committed Aug 21, 2022
1 parent d76fc25 commit 472ebf9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions share.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,8 @@ def do_get(self):
file_path = file_path[:-4]
if os.path.isdir(file_path):
self.respond_for_archive(file_path)
else:
self.respond_not_found()
else:
self.respond_not_found()

Expand Down

0 comments on commit 472ebf9

Please sign in to comment.