Fix delete keys detection with werkzeug request
This commit is contained in:
parent
595259a99d
commit
89d5c72d86
2 changed files with 12 additions and 6 deletions
|
|
@ -15,5 +15,8 @@ def parse_key_name(path):
|
|||
return "/".join(path.rstrip("/").split("/")[2:])
|
||||
|
||||
|
||||
def is_delete_keys(path, bucket_name):
|
||||
return path == u'/' + bucket_name + u'/?delete'
|
||||
def is_delete_keys(request, path, bucket_name):
|
||||
return path == u'/' + bucket_name + u'/?delete' or (
|
||||
path == u'/' + bucket_name and
|
||||
getattr(request, "query_string", "") == "delete"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue