mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-11 21:56:19 +10:00
Always return HTML in git_not_found
This allows us to give a nice 404 for e.g. archive.zip.
This commit is contained in:
@@ -154,7 +154,7 @@ class ApplicationController < ActionController::Base
|
||||
end
|
||||
|
||||
def git_not_found!
|
||||
render "errors/git_not_found", layout: "errors", status: 404
|
||||
render html: "errors/git_not_found", layout: "errors", status: 404
|
||||
end
|
||||
|
||||
def method_missing(method_sym, *arguments, &block)
|
||||
|
||||
Reference in New Issue
Block a user