Skip to content

Commit

Permalink
Set content type
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-ni committed Oct 5, 2023
1 parent 6d4bcf8 commit 65e714f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hknweb/events/views/aggregate_displays/calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def index(request):
@allow_public_access
def ical(request, *, id: uuid.UUID):
ical_view = get_object_or_404(ICalView, pk=id)
return HttpResponse(ical_view.to_ical_obj().to_ical())
return HttpResponse(ical_view.to_ical_obj().to_ical(), content_type="text/calendar")


def calendar_helper(
Expand Down

0 comments on commit 65e714f

Please sign in to comment.