Commit 4ff6c9f2 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Remove RepoPath check on Git HTTP

parent 807b9069
......@@ -63,11 +63,6 @@ func postRPCHandler(a *api.API, name string, handler func(*GitHttpResponseWriter
func repoPreAuthorizeHandler(myAPI *api.API, handleFunc api.HandleFunc) http.Handler {
return myAPI.PreAuthorizeHandler(func(w http.ResponseWriter, r *http.Request, a *api.Response) {
if a.RepoPath == "" {
helper.Fail500(w, r, fmt.Errorf("repoPreAuthorizeHandler: RepoPath empty"))
return
}
handleFunc(w, r, a)
}, "")
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment