Skip to content

Commit

Permalink
Merge pull request #951 from JustinJudd/patch-1
Browse files Browse the repository at this point in the history
Use GET /audit/v1/logs instead of POST
  • Loading branch information
kanata2 committed Jul 13, 2021
2 parents 62317b5 + 1df4efd commit 29c88d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audit.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ type AuditLogParameters struct {

func (api *Client) auditLogsRequest(ctx context.Context, path string, values url.Values) (*AuditLogResponse, error) {
response := &AuditLogResponse{}
err := api.postMethod(ctx, path, values, response)
err := api.getMethod(ctx, path, api.token, values, response)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 29c88d6

Please sign in to comment.