From 78bd7117a149452e1ee6631b899b4087a0c668fc Mon Sep 17 00:00:00 2001 From: kristinaspring Date: Tue, 11 Feb 2020 16:07:25 -0800 Subject: [PATCH] added / to apiBase to be parsed out of URL (#108) --- primaryHandler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/primaryHandler.go b/primaryHandler.go index 9a0c8c4..e5be801 100644 --- a/primaryHandler.go +++ b/primaryHandler.go @@ -324,7 +324,7 @@ func authChain(basicAuth []string, jwtVal JWTValidator, capabilityCheck Capabili options := []basculehttp.COption{ basculehttp.WithCLogger(GetLogger), basculehttp.WithCErrorResponseFunc(listener.OnErrorResponse), - basculehttp.WithParseURLFunc(basculehttp.CreateRemovePrefixURLFunc(apiBase, basculehttp.DefaultParseURLFunc)), + basculehttp.WithParseURLFunc(basculehttp.CreateRemovePrefixURLFunc(apiBase+"/", basculehttp.DefaultParseURLFunc)), } if len(basicAllowed) > 0 { options = append(options, basculehttp.WithTokenFactory("Basic", basculehttp.BasicTokenFactory(basicAllowed)))