diff options
Diffstat (limited to 'swift/common/middleware/s3api/s3request.py')
-rw-r--r-- | swift/common/middleware/s3api/s3request.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/swift/common/middleware/s3api/s3request.py b/swift/common/middleware/s3api/s3request.py index 2147b7e87..8aec3bf6f 100644 --- a/swift/common/middleware/s3api/s3request.py +++ b/swift/common/middleware/s3api/s3request.py @@ -731,8 +731,8 @@ class S3Request(swob.Request): # If the standard date is too far ahead or behind, it is an # error - delta = 60 * 5 - if abs(int(self.timestamp) - int(S3Timestamp.now())) > delta: + delta = abs(int(self.timestamp) - int(S3Timestamp.now())) + if delta > self.conf.allowable_clock_skew: raise RequestTimeTooSkewed() def _validate_headers(self): |