diff --git a/pagination.go b/pagination.go index 3dc4d6131..7cc5c4277 100644 --- a/pagination.go +++ b/pagination.go @@ -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) {