Skip to content

Commit

Permalink
PMM-12251 URL query escape.
Browse files Browse the repository at this point in the history
  • Loading branch information
JiriCtvrtka committed Nov 29, 2023
1 parent cb9d359 commit d263e69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion managed/services/grafana/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ type serviceAccountSearch struct {

func (c *Client) getServiceAccountIDFromName(ctx context.Context, nodeName string, authHeaders http.Header) (int, error) {
var res serviceAccountSearch
if err := c.do(ctx, http.MethodGet, "/api/serviceaccounts/search", fmt.Sprintf("query=%s", nodeName), authHeaders, nil, &res); err != nil {
if err := c.do(ctx, http.MethodGet, "/api/serviceaccounts/search", fmt.Sprintf("query=%s", url.QueryEscape(nodeName)), authHeaders, nil, &res); err != nil {
return 0, err
}

Expand Down

0 comments on commit d263e69

Please sign in to comment.