Skip to content

Commit

Permalink
Update metrics-operator/controllers/common/providers/dynatrace/common.go
Browse files Browse the repository at this point in the history
Co-authored-by: Giovanni Liva <giovanni.liva@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
  • Loading branch information
bacherfl and thisthat committed Aug 21, 2023
1 parent 4ca27c6 commit 6e60a7d
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,10 @@ func urlEncodeQuery(query string) string {
keyAndValue := strings.Split(param, "=")
if len(keyAndValue) == 2 {
encodedKeyAndValue := keyAndValue[0] + "=" + url.QueryEscape(keyAndValue[1])
if i == 0 {
result += encodedKeyAndValue
} else {
result += "&" + encodedKeyAndValue
if i > 0 {
result += "&"
}
result += encodedKeyAndValue
}
}

Expand Down

0 comments on commit 6e60a7d

Please sign in to comment.