diff -r 23c078e54eef mediagoblin/storage/cloudfiles.py
a
|
b
|
|
42 | 42 | self.param_host = kwargs.get('cloudfiles_host') |
43 | 43 | self.param_use_servicenet = kwargs.get('cloudfiles_use_servicenet') |
44 | 44 | |
| 45 | # the Mime Type webm doesn't exists, let's add it |
| 46 | mimetypes.add_type("video/webm", "webm") |
| 47 | |
45 | 48 | if not self.param_host: |
46 | 49 | print('No CloudFiles host URL specified, ' |
47 | 50 | 'defaulting to Rackspace US') |
… |
… |
|
92 | 95 | |
93 | 96 | if mimetype: |
94 | 97 | obj.content_type = mimetype[0] |
| 98 | # this should finally fix the bug #429 |
| 99 | meta_data = {'mime-type' : mimetype} |
| 100 | obj.metadata = meta_data |
95 | 101 | |
96 | 102 | return CloudFilesStorageObjectWrapper(obj, *args, **kwargs) |
97 | 103 | |