Skip to content

Commit 1aa3ad3

Browse files
author
Enda
authored
fix: remove trailing slash from url (#103)
1 parent e762865 commit 1aa3ad3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pkg/cmd/login/login.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"net/http"
1010
"net/url"
1111
"os"
12+
"path"
1213

1314
"github.com/bf2fc6cc711aee1a0c2a/cli/pkg/browser"
1415

@@ -98,7 +99,7 @@ func runLogin(cmd *cobra.Command, _ []string) error {
9899
// real URL:
99100
gatewayURL, ok := urlAliases[args.url]
100101
if !ok {
101-
gatewayURL = args.url
102+
gatewayURL = path.Clean(args.url)
102103
}
103104

104105
httpClient := cfg.CreateHTTPClient()

0 commit comments

Comments
 (0)