From 359219c1cfe196bd97391585135ded38d8dde1f3 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski <ayufan@ayufan.eu> Date: Thu, 5 Nov 2015 14:00:35 +0100 Subject: [PATCH] Relax preauth handler --- authorization.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authorization.go b/authorization.go index d062c69b9e4..42ef1f3b589 100644 --- a/authorization.go +++ b/authorization.go @@ -67,7 +67,7 @@ func preAuthorizeHandler(handleFunc serviceHandleFunc, suffix string) serviceHan func repoPreAuthorizeHandler(handleFunc serviceHandleFunc) serviceHandleFunc { 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")) return } -- 2.30.9