Allow S3 keys to start with leading slashes.

This commit is contained in:
Olivier Parent Colombel 2020-04-20 20:54:31 +02:00
commit 637e0188a2
3 changed files with 25 additions and 2 deletions

View file

@ -134,7 +134,8 @@ ACTION_MAP = {
def parse_key_name(pth):
return pth.lstrip("/")
# strip the first '/' left by urlparse
return pth[1:] if pth.startswith('/') else pth
def is_delete_keys(request, path, bucket_name):