about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-01-03 05:28:56 +0100
committermultiple creatures <dev@multiple-creature.party>2020-02-20 23:04:21 -0600
commit818075cd42c2a5020ee22a52c63bae9ab5fecf88 (patch)
treeef21557ff7213140e9d7c261cf231ba13b266ef4 /app/controllers
parent38aaaf4c35e4a6e41f540a6a9fc7adc5b260bbb2 (diff)
Fix uncaught unknown format errors in host meta controller (#12747)
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/well_known/host_meta_controller.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/controllers/well_known/host_meta_controller.rb b/app/controllers/well_known/host_meta_controller.rb
index 2e9298c4a..2fd6bc7cc 100644
--- a/app/controllers/well_known/host_meta_controller.rb
+++ b/app/controllers/well_known/host_meta_controller.rb
@@ -8,12 +8,8 @@ module WellKnown
 
     def show
       @webfinger_template = "#{webfinger_url}?resource={uri}"
-
-      respond_to do |format|
-        format.xml { render content_type: 'application/xrd+xml' }
-      end
-
       expires_in 3.days, public: true
+      render content_type: 'application/xrd+xml', formats: [:xml]
     end
   end
 end