瀏覽代碼

Fix uncaught unknown format errors in host meta controller (#12747)

master^2
Eugen Rochko 4 年之前
committed by GitHub
父節點
當前提交
83deae5bd7
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 1 行新增5 行删除
  1. +1
    -5
      app/controllers/well_known/host_meta_controller.rb

+ 1
- 5
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

Loading…
取消
儲存