1
0
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:
Matt McCollow 2023-10-16 21:36:24 -04:00
parent c80492fb27
commit 7504234894

View File

@ -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)