Skip to content

Commit

Permalink
fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
mathnogueira committed Aug 28, 2024
1 parent eb8121f commit cbe91b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cli/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type Config struct {
}

func (c Config) OAuthEndpoint() string {
return path.Join(c.URL(), c.Path())
return fmt.Sprintf("%s%s", c.URL(), c.Path())
}

func (c Config) URL() string {
Expand Down
1 change: 1 addition & 0 deletions cli/config/configurator.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ func (c Configurator) getServerURL(prev *Config) (string, error) {
}

func (c Configurator) createConfig(serverURL string) (Config, error) {
serverURL = strings.TrimSuffix(serverURL, "/")
scheme, endpoint, path, err := ParseServerURL(serverURL)
if err != nil {
return Config{}, err
Expand Down

0 comments on commit cbe91b0

Please sign in to comment.