Commit 86b7b91b authored by Athar Hameed's avatar Athar Hameed Committed by Etienne Baqué

Resolve "ActionController::RespondToMismatchError in wiki controller"

parent 668fc6a8
......@@ -207,13 +207,13 @@ class ApplicationController < ActionController::Base
end
respond_to do |format|
format.any { head status }
format.html do
render template,
layout: "errors",
status: status,
locals: { message: message }
end
format.any { head status }
end
end
......@@ -223,8 +223,8 @@ class ApplicationController < ActionController::Base
def render_403
respond_to do |format|
format.any { head :forbidden }
format.html { render "errors/access_denied", layout: "errors", status: :forbidden }
format.any { head :forbidden }
end
end
......
---
title: Return an HTML response for a request with the Accept */* header
merge_request: 56288
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment