Skip to content

Commit

Permalink
Allow our middleware to control enterprise console download sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
mjriley committed Jul 1, 2024
1 parent 8b315dd commit 5d54c04
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion corehq/apps/enterprise/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ def enterprise_dashboard_download(request, domain, slug, export_hash):
if content:
file = ContentFile(content)
response = HttpResponse(file, Format.FORMAT_DICT[Format.UNZIPPED_CSV])
response['Content-Length'] = file.size
response['Content-Disposition'] = 'attachment; filename="{}"'.format(report.filename)
return response

Expand Down

0 comments on commit 5d54c04

Please sign in to comment.