Commit 359219c1 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Relax preauth handler

parent b8867389
...@@ -67,7 +67,7 @@ func preAuthorizeHandler(handleFunc serviceHandleFunc, suffix string) serviceHan ...@@ -67,7 +67,7 @@ func preAuthorizeHandler(handleFunc serviceHandleFunc, suffix string) serviceHan
func repoPreAuthorizeHandler(handleFunc serviceHandleFunc) serviceHandleFunc { func repoPreAuthorizeHandler(handleFunc serviceHandleFunc) serviceHandleFunc {
return preAuthorizeHandler(func(w http.ResponseWriter, r *gitRequest) { return preAuthorizeHandler(func(w http.ResponseWriter, r *gitRequest) {
if r.GL_ID == "" || r.RepoPath == "" { if r.RepoPath == "" {
fail500(w, "repoPreAuthorizeHandler", errors.New("missing authorization response")) fail500(w, "repoPreAuthorizeHandler", errors.New("missing authorization response"))
return return
} }
......
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