Skip to content

Commit

Permalink
set the content-type explicitly
Browse files Browse the repository at this point in the history
#edgecasefixing
  • Loading branch information
Dennis Schubert committed Dec 14, 2014
1 parent 0073e9e commit af4ee0e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/controllers/blog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ def index

def feed
@blogposts = Blogpost.where(:published => true).order(:created_at => :desc).limit 5
respond_to do |format|
format.atom { headers["Content-Type"] = 'application/atom+xml; charset=utf-8'}
end
end
end
3 changes: 3 additions & 0 deletions app/controllers/planet_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ def index

def feed
@entries = Planet::Models::Entry.order(:published_at => :desc).limit 25
respond_to do |format|
format.atom { headers["Content-Type"] = 'application/atom+xml; charset=utf-8'}
end
end
end

0 comments on commit af4ee0e

Please sign in to comment.