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.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/swift/common/middleware/account_quotas.py b/swift/common/middleware/account_quotas.py
index ced16d27d..06b0d9aa6 100644
--- a/swift/common/middleware/account_quotas.py
+++ b/swift/common/middleware/account_quotas.py
@@ -73,6 +73,9 @@ class AccountQuotaMiddleware(object):
return self.app
new_quota = request.headers.get('X-Account-Meta-Quota-Bytes')
+ remove_quota = request.headers.get('X-Remove-Account-Meta-Quota-Bytes')
+ if remove_quota:
+ new_quota = 0 # X-Remove dominates if both are present
if request.environ.get('reseller_request') is True:
if new_quota and not new_quota.isdigit():