Commit a9649973 by Oleg Marshev

Merge pull request #3648 from edx/oleg/fix-download-transcript

Add mime-type for srt and sjson when importing course. 
parents e70ea9a1 b9cd6cd6
...@@ -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