@@ -51,7 +51,9 @@ func (c *ApiService) CreateCredentialAws(params *CreateCredentialAwsParams) (*Ac
5151 path := "/v1/Credentials/AWS"
5252
5353 data := url.Values {}
54- headers := make (map [string ]interface {})
54+ headers := map [string ]interface {}{
55+ "Content-Type" : "application/x-www-form-urlencoded" ,
56+ }
5557
5658 if params != nil && params .Credentials != nil {
5759 data .Set ("Credentials" , * params .Credentials )
@@ -84,7 +86,9 @@ func (c *ApiService) DeleteCredentialAws(Sid string) error {
8486 path = strings .Replace (path , "{" + "Sid" + "}" , Sid , - 1 )
8587
8688 data := url.Values {}
87- headers := make (map [string ]interface {})
89+ headers := map [string ]interface {}{
90+ "Content-Type" : "application/x-www-form-urlencoded" ,
91+ }
8892
8993 resp , err := c .requestHandler .Delete (c .baseURL + path , data , headers )
9094 if err != nil {
@@ -102,7 +106,9 @@ func (c *ApiService) FetchCredentialAws(Sid string) (*AccountsV1CredentialAws, e
102106 path = strings .Replace (path , "{" + "Sid" + "}" , Sid , - 1 )
103107
104108 data := url.Values {}
105- headers := make (map [string ]interface {})
109+ headers := map [string ]interface {}{
110+ "Content-Type" : "application/x-www-form-urlencoded" ,
111+ }
106112
107113 resp , err := c .requestHandler .Get (c .baseURL + path , data , headers )
108114 if err != nil {
@@ -141,7 +147,9 @@ func (c *ApiService) PageCredentialAws(params *ListCredentialAwsParams, pageToke
141147 path := "/v1/Credentials/AWS"
142148
143149 data := url.Values {}
144- headers := make (map [string ]interface {})
150+ headers := map [string ]interface {}{
151+ "Content-Type" : "application/x-www-form-urlencoded" ,
152+ }
145153
146154 if params != nil && params .PageSize != nil {
147155 data .Set ("PageSize" , fmt .Sprint (* params .PageSize ))
@@ -272,7 +280,9 @@ func (c *ApiService) UpdateCredentialAws(Sid string, params *UpdateCredentialAws
272280 path = strings .Replace (path , "{" + "Sid" + "}" , Sid , - 1 )
273281
274282 data := url.Values {}
275- headers := make (map [string ]interface {})
283+ headers := map [string ]interface {}{
284+ "Content-Type" : "application/x-www-form-urlencoded" ,
285+ }
276286
277287 if params != nil && params .FriendlyName != nil {
278288 data .Set ("FriendlyName" , * params .FriendlyName )
0 commit comments