Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
86b7b91b
Commit
86b7b91b
authored
May 04, 2021
by
Athar Hameed
Committed by
Etienne Baqué
May 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve "ActionController::RespondToMismatchError in wiki controller"
parent
668fc6a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
app/controllers/application_controller.rb
app/controllers/application_controller.rb
+2
-2
changelogs/unreleased/235479-actioncontroller-respondtomismatcherror-in-wiki-controller.yml
...ncontroller-respondtomismatcherror-in-wiki-controller.yml
+5
-0
No files found.
app/controllers/application_controller.rb
View file @
86b7b91b
...
...
@@ -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
...
...
changelogs/unreleased/235479-actioncontroller-respondtomismatcherror-in-wiki-controller.yml
0 → 100644
View file @
86b7b91b
---
title
:
Return an HTML response for a request with the Accept */* header
merge_request
:
56288
author
:
type
:
fixed
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment