From add8d351de37867f40c09508ec483661e6c5e6a3 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Wed, 18 Apr 2012 09:22:51 -0500 Subject: [PATCH] Also make sure mimetype here is set correctly via mimetype[0] (Thanks Shackra!) --- mediagoblin/storage/cloudfiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediagoblin/storage/cloudfiles.py b/mediagoblin/storage/cloudfiles.py index 2054a0d0..c800005f 100644 --- a/mediagoblin/storage/cloudfiles.py +++ b/mediagoblin/storage/cloudfiles.py @@ -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) -- 2.25.1