mirror of
https://github.com/mrusme/neonmodem.git
synced 2024-09-29 04:45:55 -04:00
Merge pull request #47 from mmccollow/fix-trailing-url-slash
Strip trailing slashes from URLs during connect
This commit is contained in:
commit
70daa744dc
@ -40,6 +40,7 @@ func connectBase() *cobra.Command {
|
||||
LOG.Panicln(err)
|
||||
}
|
||||
|
||||
sysURL := strings.TrimRight(sysURL, "/")
|
||||
sysURLparsed, err := url.Parse(sysURL)
|
||||
if err != nil {
|
||||
fmt.Print(err)
|
||||
|
Loading…
Reference in New Issue
Block a user