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:
parent
381ca79bfa
commit
a74915a4ad
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue