Also make sure mimetype here is set correctly via mimetype[0] (Thanks Shackra!)
This commit is contained in:
parent
6a26e4b055
commit
add8d351de
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user