From 3931912f8d34aa1c7bffcf17f972bd3489aae6fa Mon Sep 17 00:00:00 2001 From: runzexia Date: Mon, 29 Apr 2019 18:43:44 +0800 Subject: [PATCH] fix typo --- pkg/apigateway/caddy-plugin/authenticate/authenticate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apigateway/caddy-plugin/authenticate/authenticate.go b/pkg/apigateway/caddy-plugin/authenticate/authenticate.go index 03a160627..3ee4fe11a 100644 --- a/pkg/apigateway/caddy-plugin/authenticate/authenticate.go +++ b/pkg/apigateway/caddy-plugin/authenticate/authenticate.go @@ -132,7 +132,7 @@ func (h Auth) InjectContext(req *http.Request, token *jwt.Token) (*http.Request, // hard code, support jenkins auth plugin if httpserver.Path(req.URL.Path).Matches("/kapis/jenkins.kubesphere.io") || httpserver.Path(req.URL.Path).Matches("job") || - httpserver.Path(req.URL.Path).Matches("/kapi/devops.kubesphere.io/v1alpha2") { + httpserver.Path(req.URL.Path).Matches("/kapis/devops.kubesphere.io/v1alpha2") { req.SetBasicAuth(username, token.Raw) }