Merge pull request #21861 from edx/BOM-850

BOM-850
This commit is contained in:
Ayub
2019-10-01 12:00:06 +05:00
committed by GitHub

View File

@@ -534,7 +534,12 @@ class VideoStudioViewHandlers(object):
video=self, lang=language, output_format=Transcript.SRT
)
response = Response(transcript_content, headerlist=[
('Content-Disposition', 'attachment; filename="{}"'.format(transcript_name.encode('utf8'))),
(
'Content-Disposition',
'attachment; filename="{}"'.format(
transcript_name.encode('utf8') if six.PY2 else transcript_name
)
),
('Content-Language', language),
('Content-Type', mime_type)
])