Fixed bytes in filename

This commit is contained in:
asadazam93
2020-01-21 16:04:46 +05:00
parent 0ce89b70eb
commit 86b3dfbc54

View File

@@ -264,7 +264,7 @@ def download_transcripts(request):
# Construct an HTTP response
response = HttpResponse(content, content_type=mimetype)
response['Content-Disposition'] = u'attachment; filename="{filename}"'.format(filename=filename.encode('utf-8'))
response['Content-Disposition'] = u'attachment; filename="{filename}"'.format(filename=filename)
return response