aboutsummaryrefslogtreecommitdiffstats
path: root/client/go
diff options
context:
space:
mode:
Diffstat (limited to 'client/go')
-rw-r--r--client/go/cmd/deploy/curl.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/go/cmd/deploy/curl.go b/client/go/cmd/deploy/curl.go
index 67edb0ee010..b5d392dad1e 100644
--- a/client/go/cmd/deploy/curl.go
+++ b/client/go/cmd/deploy/curl.go
@@ -41,8 +41,8 @@ func curlGet(url string, output io.Writer) error {
}
func urlWithoutQuery(url string) string {
- before, _, _ := strings.Cut(url, "?")
- return before
+ parts := strings.Split(url, "?")
+ return parts[0]
}
func getOutputFromCmd(program string, args ...string) (string, error) {