Fix an 'if' condition.
"if 'uploads' or ..." is always evaluated to true, This seems to have no bug related to it for now (not that I know). But may be a source of bug, when refactoring or fixing further problems. Change-Id: Icc3f45dc1b85c594f172cfa8075ff9cfa01aacb4
This commit is contained in:
parent
b757bdc24e
commit
e88a2ced91
@ -862,7 +862,7 @@ class Swift3Middleware(object):
|
||||
|
||||
if container and obj:
|
||||
if env['REQUEST_METHOD'] == 'POST':
|
||||
if 'uploads' or 'uploadId' in args:
|
||||
if 'uploads' in args or 'uploadId' in args:
|
||||
return BucketController, d
|
||||
return ObjectController, d
|
||||
elif container:
|
||||
|
Loading…
x
Reference in New Issue
Block a user