X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/dbb1ae2cf25105f7a3831961b08386a1326baef8..6280673f35e13e75e81c5b7821bd2a44a1831eab:/apps/reporting/utils.py?ds=inline diff --git a/apps/reporting/utils.py b/apps/reporting/utils.py index 06a168074..8ecb9b045 100755 --- a/apps/reporting/utils.py +++ b/apps/reporting/utils.py @@ -113,7 +113,7 @@ def generated_file_view(file_name, mime_type, send_name=None, signals=None): else: name = send_name - response = HttpResponse(mimetype=mime_type) + response = HttpResponse(content_type=mime_type) response['Content-Disposition'] = 'attachment; filename=%s' % name with open(file_path) as f: for chunk in read_chunks(f):