提交 a74915a4 编写于 作者: J Jacob Vosmaer

Always return HTML in git_not_found

This allows us to give a nice 404 for e.g. archive.zip.
上级 381ca79b
...@@ -154,7 +154,7 @@ class ApplicationController < ActionController::Base ...@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册