Skip to content

Commit 7504234

Browse files
author
Matt McCollow
committed
Strip trailing slashes from URLs during connect
1 parent c80492f commit 7504234

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/connect.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ func connectBase() *cobra.Command {
4040
LOG.Panicln(err)
4141
}
4242

43+
sysURL := strings.TrimRight(sysURL, "/")
4344
sysURLparsed, err := url.Parse(sysURL)
4445
if err != nil {
4546
fmt.Print(err)

0 commit comments

Comments
 (0)