Update MIME type for .blend to application/x-blender

This commit is contained in:
Francesco Siddi 2016-05-13 11:52:06 +02:00
parent 7eb72c87f5
commit c44a1d870b
2 changed files with 4 additions and 4 deletions

View File

@ -39,7 +39,7 @@ file_storage = Blueprint('file_storage', __name__,
static_folder='../../static/storage', )
# Add our own extensions to the mimetypes package
mimetypes.add_type('application/x-blend', '.blend')
mimetypes.add_type('application/x-blender', '.blend')
@file_storage.route('/gcs/<bucket_name>/<subdir>/')

View File

@ -19,8 +19,8 @@ class FileStorageTest(AbstractPillarTest):
fake = self.fake_file('compressed.blend', 'jemoeder')
override_content_type(fake)
self.assertEqual('application/x-blend', fake.content_type)
self.assertEqual('application/x-blend', fake.mimetype)
self.assertEqual('application/x-blender', fake.content_type)
self.assertEqual('application/x-blender', fake.mimetype)
fake = self.fake_file('blend.mp3', 'application/octet-stream')
override_content_type(fake)
@ -105,7 +105,7 @@ class FileAccessTest(AbstractPillarTest):
})
blend_file_id, _ = self.ensure_file_exists({u'_id': None,
u'content_type': u'application/x-blend',
u'content_type': u'application/x-blender',
u'variations': None})
nonsub_user_id = self.create_user(user_id='cafef00dcafef00d00000000', roles=())