fix restore header formatting
This commit is contained in:
parent
8ada1d7829
commit
11938dae7a
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue