Skip to content

Commit

Permalink
Fixed webfinger xrd rendering.
Browse files Browse the repository at this point in the history
  • Loading branch information
wilkie committed Sep 12, 2011
1 parent e9f2ca2 commit 236f158
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/controllers/webfinger_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ def host_meta
@base_url = root_url
@hostname = request.host

content_type "application/xrd+xml"
render "xml/webfinger/host-meta", :layout => false
render "xml/webfinger/host-meta", :layout => false, :content_type => "application/xrd+xml"
end

# User xrd generation
Expand All @@ -20,7 +19,6 @@ def xrd
@user = User.first :username => /^#{username}$/i
@base_url = root_url

content_type "application/xrd+xml"
render "xml/webfinger/xrd", :layout => false
render "xml/webfinger/xrd", :layout => false, :content_type => "application/xrd+xml"
end
end

0 comments on commit 236f158

Please sign in to comment.