From 113de64ac73f529af14da3e0aff12b05c2edd3a7 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 9 May 2022 15:17:47 +0200 Subject: CMD: Ensure / path suffix So that it also matches the url in the map --- cmd/cli/main.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmd') diff --git a/cmd/cli/main.go b/cmd/cli/main.go index 31d2035..5a35c8e 100644 --- a/cmd/cli/main.go +++ b/cmd/cli/main.go @@ -86,6 +86,9 @@ func getConfig(state *eduvpn.VPNState, url string, isInstitute bool) (string, er if !strings.HasPrefix(url, "https://") { url = "https://" + url } + if !strings.HasSuffix(url, "/") { + url += "/" + } if isInstitute { return state.GetConfigInstituteAccess(url, false) } -- cgit v1.2.3