Commit e50a3c57 by muzaffaryousaf

Adding text param to webob response for 1.7.1. https://github.com/Pylons/webob/issues/304

TNL-6553
parent 0c53f6c8
...@@ -265,7 +265,7 @@ class VideoStudentViewHandlers(object): ...@@ -265,7 +265,7 @@ class VideoStudentViewHandlers(object):
return Response(status=404) return Response(status=404)
else: else:
response = Response( response = Response(
transcript_content, text=transcript_content,
headerlist=[ headerlist=[
('Content-Disposition', 'attachment; filename="{}"'.format(transcript_filename.encode('utf8'))), ('Content-Disposition', 'attachment; filename="{}"'.format(transcript_filename.encode('utf8'))),
('Content-Language', self.transcript_language), ('Content-Language', self.transcript_language),
......
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