now can delete content-encoding if it was set at object creation

This commit is contained in:
John Dickinson 2011-03-22 18:25:16 -05:00
parent 06094af359
commit 68566d38cf

View File

@ -137,7 +137,7 @@ class DiskFile(object):
if self.meta_file:
with open(self.meta_file) as mfp:
for key in self.metadata.keys():
if key.lower() not in ('content-type', 'content-encoding',
if key.lower() not in ('content-type',
'deleted', 'content-length', 'etag'):
del self.metadata[key]
self.metadata.update(read_metadata(mfp))