summaryrefslogtreecommitdiff
path: root/swift/common/middleware/account_quotas.py
diff options
context:
space:
mode:
Diffstat (limited to 'swift/common/middleware/account_quotas.py')
-rw-r--r--swift/common/middleware/account_quotas.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/swift/common/middleware/account_quotas.py b/swift/common/middleware/account_quotas.py
index a3a6ab8d7..c687f983d 100644
--- a/swift/common/middleware/account_quotas.py
+++ b/swift/common/middleware/account_quotas.py
@@ -95,7 +95,7 @@ class AccountQuotaMiddleware(object):
if new_quota is not None:
return HTTPForbidden()
- if obj and request.method == "POST":
+ if obj and request.method == "POST" or not obj:
return self.app
copy_from = request.headers.get('X-Copy-From')