Skip to content

Commit

Permalink
Use hex notation for list options hash
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarber-akamai committed Jan 10, 2023
1 parent 40af10b commit 28bf4ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pagination.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ func (l ListOptions) Hash() (string, error) {

h := sha256.New()

return string(h.Sum(data)), nil
h.Write(data)

return fmt.Sprintf("%x", h.Sum(nil)), nil
}

func applyListOptionsToRequest(opts *ListOptions, req *resty.Request) {
Expand Down

0 comments on commit 28bf4ae

Please sign in to comment.