Merge pull request #6931 from opf/fix/render-error-mimetype

Send HEAD 404 on any mime type

[ci skip]
pull/6938/head
Oliver Günther 6 years ago committed by GitHub
commit f9d425d629
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/controllers/application_controller.rb

@ -506,7 +506,7 @@ class ApplicationController < ActionController::Base
format.html do
render template: 'common/error', layout: use_layout, status: @status
end
format.any(:atom, :xml, :js, :json, :pdf, :csv) do
format.any do
head @status
end
end

Loading…
Cancel
Save