Skip to content

Commit

Permalink
bug: fixes struct for mask and http verb #530 (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
srinandan authored Sep 4, 2024
1 parent a9e046f commit a08b0c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/client/env/debugmask.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ func GetDebug() (respBody []byte, err error) {
// SetDebug
func SetDebug(maskConfig []byte) (respBody []byte, err error) {
// the following steps will validate json
m := map[string]string{}
m := map[string]interface{}{}
err = json.Unmarshal(maskConfig, &m)
if err != nil {
return respBody, err
}
u, _ := url.Parse(apiclient.GetApigeeBaseURL())
u.Path = path.Join(u.Path, apiclient.GetApigeeOrg(), "environments", apiclient.GetApigeeEnv(), "debugmask")
respBody, err = apiclient.HttpClient(u.String(), string(maskConfig))
respBody, err = apiclient.HttpClient(u.String(), string(maskConfig), "PATCH")
return respBody, err
}

0 comments on commit a08b0c8

Please sign in to comment.