Private
Public Access
1
0

adding content-type to ICS download

This commit is contained in:
Sander Roosendaal
2018-11-26 21:21:36 +01:00
parent f81604a6d6
commit 77e380a4ca

View File

@@ -1451,7 +1451,8 @@ def plannedsessions_icsemail_view(request,userid=0):
response = HttpResponse(cal.to_ical())
response['Content-Disposition'] = 'attachment; filename="training_plan_%s.ics"' % request.user.id
response['Content-Disposition'] = 'attachment; filename="training_plan_%s.ics"' % request.user.id
response['Content-Type'] = 'application/octet-stream'
return response