Skip to content

Commit

Permalink
bugfix: properly set mimetype of ical feed
Browse files Browse the repository at this point in the history
  • Loading branch information
angusmcleod committed Jul 4, 2019
1 parent 900b14b commit 2219ea3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
/gems/*
2 changes: 1 addition & 1 deletion plugin.rb
Expand Up @@ -530,7 +530,7 @@ def event_ics(opts = {})

cal.publish

render plain: cal.to_ical, formats: [:ics] unless performed?
render body: cal.to_ical, formats: [:ics], content_type: Mime::Type.lookup("text/calendar") unless performed?
end
end

Expand Down

0 comments on commit 2219ea3

Please sign in to comment.