Skip to content

Commit 78a2e31

Browse files
committed
fix(core): Remove any leading or trailing / from any ApiPath inputs.
1 parent 7be00ce commit 78a2e31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth_providers/auth_core.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ func (c *CommandAuthConfig) ValidateAuthConfig() error {
270270
}
271271
if c.CommandAPIPath == "" {
272272
if apiPath, ok := os.LookupEnv(EnvKeyfactorAPIPath); ok {
273-
c.CommandAPIPath = apiPath
273+
c.CommandAPIPath = strings.Trim(apiPath, "/")
274274
} else {
275275
c.CommandAPIPath = DefaultCommandAPIPath
276276
}

0 commit comments

Comments
 (0)