summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2015-10-14 15:22:03 +0200
committerJacob Vosmaer <contact@jacobvosmaer.nl>2015-10-14 15:22:03 +0200
commita74915a4adb4bc116f039dfb2438ae97ffde4e7e (patch)
treed9b02eae0c86e37375c87e3b78442a083afc3d48
parent381ca79bfa59d8d78a8bb1a7ee60cb46a87e4929 (diff)
downloadgitlab-ce-a74915a4adb4bc116f039dfb2438ae97ffde4e7e.tar.gz
Always return HTML in git_not_found
This allows us to give a nice 404 for e.g. archive.zip.
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 527c9da0faa..be217e121b0 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -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)