Merge pull request #22906 from edx/asad/prod-1127

Fixed bytes in filename
This commit is contained in:
AsadAzam
2020-01-23 12:22:20 +05:00
committed by GitHub

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