mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 00:08:46 +00:00
Change to always returns html document in error pages (#12214)
This commit is contained in:
committed by
Eugen Rochko
parent
6c60ccee8a
commit
afb398b583
@@ -136,9 +136,6 @@ class ApplicationController < ActionController::Base
|
||||
end
|
||||
|
||||
def respond_with_error(code)
|
||||
respond_to do |format|
|
||||
format.any { head code }
|
||||
format.html { render "errors/#{code}", layout: 'error', status: code }
|
||||
end
|
||||
render "errors/#{code}", layout: 'error', status: code
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user