diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2020-01-03 05:28:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-03 05:28:56 +0100 |
commit | 83deae5bd7adf37550bb8e14d1ec696a84555c39 (patch) | |
tree | 1db8e372f5cb129e204bcdec5e8c6c899068636a | |
parent | e4d75f238b751329f1d9729046cc65b7b363c7d8 (diff) |
Fix uncaught unknown format errors in host meta controller (#12747)
-rw-r--r-- | app/controllers/well_known/host_meta_controller.rb | 6 |
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 |