diff --git a/client/object_delete.go b/client/object_delete.go index c0a3174a..4dbb7f66 100644 --- a/client/object_delete.go +++ b/client/object_delete.go @@ -146,7 +146,7 @@ func (c *Client) ObjectDelete(ctx context.Context, prm PrmObjectDelete) (*ResObj key = prm.key } - err := signature.SignServiceMessage(&key, req) + err := signature.SignServiceMessage(&key, &req) if err != nil { return nil, fmt.Errorf("sign request: %w", err) } diff --git a/client/object_get.go b/client/object_get.go index 53aeca99..ea4528d8 100644 --- a/client/object_get.go +++ b/client/object_get.go @@ -433,7 +433,7 @@ func (c *Client) ObjectHead(ctx context.Context, prm PrmObjectHead) (*ResObjectH } // sign the request - err := signature.SignServiceMessage(&key, req) + err := signature.SignServiceMessage(&key, &req) if err != nil { return nil, fmt.Errorf("sign request: %w", err) } diff --git a/client/object_hash.go b/client/object_hash.go index ffcfc518..30ea8e37 100644 --- a/client/object_hash.go +++ b/client/object_hash.go @@ -176,7 +176,7 @@ func (c *Client) ObjectHash(ctx context.Context, prm PrmObjectHash) (*ResObjectH c.prepareRequest(&req, &prm.meta) req.SetBody(&prm.body) - err := signature.SignServiceMessage(&c.prm.key, req) + err := signature.SignServiceMessage(&c.prm.key, &req) if err != nil { return nil, fmt.Errorf("sign request: %w", err) }