Skip to content

Commit

Permalink
🔧 Expose content-disposition header for template downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
znatty22 committed Dec 7, 2021
1 parent c13c656 commit 68eb693
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions creator/data_templates/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def download_templates(request, study_kf_id=None):
] = f"attachment; filename*=UTF-8''{filename}"
response["Content-Length"] = stream.getbuffer().nbytes
response["Content-Type"] = mime_type
response["Access-Control-Expose-Headers"] = "Content-Disposition"
stream.close()

# Fire a template download event for each template
Expand Down

0 comments on commit 68eb693

Please sign in to comment.