Update MIME type for .blend to application/x-blender
This commit is contained in:
@@ -39,7 +39,7 @@ file_storage = Blueprint('file_storage', __name__,
|
|||||||
static_folder='../../static/storage', )
|
static_folder='../../static/storage', )
|
||||||
|
|
||||||
# Add our own extensions to the mimetypes package
|
# 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>/')
|
@file_storage.route('/gcs/<bucket_name>/<subdir>/')
|
||||||
|
@@ -19,8 +19,8 @@ class FileStorageTest(AbstractPillarTest):
|
|||||||
|
|
||||||
fake = self.fake_file('compressed.blend', 'jemoeder')
|
fake = self.fake_file('compressed.blend', 'jemoeder')
|
||||||
override_content_type(fake)
|
override_content_type(fake)
|
||||||
self.assertEqual('application/x-blend', fake.content_type)
|
self.assertEqual('application/x-blender', fake.content_type)
|
||||||
self.assertEqual('application/x-blend', fake.mimetype)
|
self.assertEqual('application/x-blender', fake.mimetype)
|
||||||
|
|
||||||
fake = self.fake_file('blend.mp3', 'application/octet-stream')
|
fake = self.fake_file('blend.mp3', 'application/octet-stream')
|
||||||
override_content_type(fake)
|
override_content_type(fake)
|
||||||
@@ -105,7 +105,7 @@ class FileAccessTest(AbstractPillarTest):
|
|||||||
|
|
||||||
})
|
})
|
||||||
blend_file_id, _ = self.ensure_file_exists({u'_id': None,
|
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})
|
u'variations': None})
|
||||||
|
|
||||||
nonsub_user_id = self.create_user(user_id='cafef00dcafef00d00000000', roles=())
|
nonsub_user_id = self.create_user(user_id='cafef00dcafef00d00000000', roles=())
|
||||||
|
Reference in New Issue
Block a user