fix restore header formatting

This commit is contained in:
Konstantinos Koukopoulos 2014-03-27 10:00:50 +02:00
parent 8ada1d7829
commit 11938dae7a

View File

@ -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