From ec32c55e4069d4ee16cfae1b058355d26b85f1aa Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Tue, 18 Jan 2011 14:44:00 +0900 Subject: [PATCH] s3api: fix devauth auth failure handling --- swift/auth/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/swift/auth/server.py b/swift/auth/server.py index dac3a78a3e..32c768f212 100644 --- a/swift/auth/server.py +++ b/swift/auth/server.py @@ -442,7 +442,8 @@ YOU HAVE A FEW OPTIONS: headers = {} if 'Authorization' in request.headers: validation = self.validate_s3_sign(request, token) - headers['X-Auth-Account-Suffix'] = validation[3] + if validation: + headers['X-Auth-Account-Suffix'] = validation[3] else: validation = self.validate_token(token) if not validation: