From e88a2ced91fef5fe4657403c1e0fbb9953332251 Mon Sep 17 00:00:00 2001 From: Nassim Babaci Date: Fri, 28 Mar 2014 14:52:36 +0100 Subject: [PATCH] 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 --- swift3/middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swift3/middleware.py b/swift3/middleware.py index 55890738..14623863 100644 --- a/swift3/middleware.py +++ b/swift3/middleware.py @@ -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: