diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-10-14 15:22:03 +0200 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-10-14 15:22:03 +0200 |
commit | a74915a4adb4bc116f039dfb2438ae97ffde4e7e (patch) | |
tree | d9b02eae0c86e37375c87e3b78442a083afc3d48 /app/controllers/application_controller.rb | |
parent | 381ca79bfa59d8d78a8bb1a7ee60cb46a87e4929 (diff) | |
download | gitlab-ce-a74915a4adb4bc116f039dfb2438ae97ffde4e7e.tar.gz |
Always return HTML in git_not_found
This allows us to give a nice 404 for e.g. archive.zip.
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 2 |
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) |