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:
Jacob Vosmaer 2015-10-14 15:22:03 +02:00
parent 381ca79bfa
commit a74915a4ad

View file

@ -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)