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
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ class ApplicationController < ActionController::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def git_not_found!
|
def git_not_found!
|
||||||
render "errors/git_not_found", layout: "errors", status: 404
|
render html: "errors/git_not_found", layout: "errors", status: 404
|
||||||
end
|
end
|
||||||
|
|
||||||
def method_missing(method_sym, *arguments, &block)
|
def method_missing(method_sym, *arguments, &block)
|
||||||
|
|
Loading…
Reference in a new issue