Also make sure mimetype here is set correctly via mimetype[0] (Thanks Shackra!)

This commit is contained in:
Christopher Allan Webber 2012-04-18 09:22:51 -05:00
parent 6a26e4b055
commit add8d351de

View File

@ -96,7 +96,7 @@ class CloudFilesStorage(StorageInterface):
if mimetype:
obj.content_type = mimetype[0]
# this should finally fix the bug #429
meta_data = {'mime-type' : mimetype}
meta_data = {'mime-type' : mimetype[0]}
obj.metadata = meta_data
return CloudFilesStorageObjectWrapper(obj, *args, **kwargs)