Skip to content

Commit

Permalink
Merge pull request #804 from kids-first/expose-content-disposition
Browse files Browse the repository at this point in the history
🛠 Expose content-disposition header in download template reqs
  • Loading branch information
znatty22 authored Dec 8, 2021
2 parents c13c656 + 68eb693 commit ff6360a
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 ff6360a

Please sign in to comment.