fix restore header formatting
This commit is contained in:
parent
8ada1d7829
commit
11938dae7a
@ -74,8 +74,8 @@ class FakeKey(object):
|
||||
if self._storage_class != 'STANDARD':
|
||||
r['x-amz-storage-class'] = self._storage_class
|
||||
if self._expiry is not None:
|
||||
r['x-amz-restore'] = 'ongoing-request="false", expiry-date={}'.format(
|
||||
self.expiry_date)
|
||||
rhdr = 'ongoing-request="false", expiry-date="{0}"'
|
||||
r['x-amz-restore'] = rhdr.format(self.expiry_date)
|
||||
return r
|
||||
|
||||
@property
|
||||
|
Loading…
Reference in New Issue
Block a user