Also make sure mimetype here is set correctly via mimetype[0] (Thanks Shackra!)
authorChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 18 Apr 2012 14:22:51 +0000 (09:22 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 18 Apr 2012 14:22:51 +0000 (09:22 -0500)
mediagoblin/storage/cloudfiles.py

index 2054a0d0de6b22dd2f7bafc52a846e16550a8922..c800005fc926f3694a1e741aa40b007f0e878b76 100644 (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)