Skip to content
Snippets Groups Projects
Commit a74915a4 authored by Jacob Vosmaer's avatar Jacob Vosmaer
Browse files

Always return HTML in git_not_found

This allows us to give a nice 404 for e.g. archive.zip.
parent 381ca79b
No related branches found
No related tags found
1 merge request!1548Let gitlab-git-http-server handle archive downloads
Pipeline #
Loading
Loading
@@ -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)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment