mirror of
https://github.com/mrusme/neonmodem.git
synced 2024-12-04 14:46:37 -05:00
Strip trailing slashes from URLs during connect
This commit is contained in:
parent
c80492fb27
commit
7504234894
@ -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