Self hosted FLOSS fitness/workout, nutrition and weight tracker
Don't set a content disposition header
Roland Geiderd7924a48a0a9
diff --git a/wger/manager/tests/test_ical.py b/wger/manager/tests/test_ical.pyindex 4db3e3117..d104a0dc5 100644--- a/wger/manager/tests/test_ical.py+++ b/wger/manager/tests/test_ical.py@@ -39,9 +39,6 @@ class WorkoutICalExportTestCase(WgerTestCase):else:self.assertEqual(response.status_code, 200)self.assertEqual(response['Content-Type'], 'text/calendar')- self.assertEqual(- response['Content-Disposition'], 'attachment; filename=Calendar-workout-3.ics'- )# Approximate sizeself.assertGreater(len(response.content), 50)diff --git a/wger/manager/views/ical.py b/wger/manager/views/ical.pyindex b48365baa..3a5eb5ced 100644--- a/wger/manager/views/ical.py+++ b/wger/manager/views/ical.py@@ -107,7 +107,6 @@ def export(request, pk):# Send the file to the userresponse = HttpResponse(content_type='text/calendar')- response['Content-Disposition'] = f'attachment; filename=Calendar-workout-{routine.pk}.ics'response.write(calendar.to_ical())response['Content-Length'] = len(response.content)return response