Skip to content
Snippets Groups Projects
Commit c29b7520 authored by Ayub khan's avatar Ayub khan
Browse files

BOM-850

python3 compatibility
parent 2de3667c
No related branches found
No related tags found
No related merge requests found
......@@ -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)
])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment