Commit b9cd6cd6 by Oleg Marshev

Add sjson and srt to type map.

parent e70ea9a1
...@@ -35,6 +35,9 @@ def import_static_content( ...@@ -35,6 +35,9 @@ def import_static_content(
policy = {} policy = {}
verbose = True verbose = True
mimetypes.add_type('application/octet-stream', '.sjson')
mimetypes.add_type('application/octet-stream', '.srt')
mimetypes_list = mimetypes.types_map.values() mimetypes_list = mimetypes.types_map.values()
for dirname, _, filenames in os.walk(static_dir): for dirname, _, filenames in os.walk(static_dir):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment