diff --git a/client/object_get.go b/client/object_get.go index ee86e38a..12d332c3 100644 --- a/client/object_get.go +++ b/client/object_get.go @@ -321,7 +321,12 @@ func (c *Client) ObjectGetInit(ctx context.Context, prm PrmObjectGet) (*ObjectRe req.SetBody(&body) c.prepareRequest(&req, &prm.meta) - err := signature.SignServiceMessage(&c.prm.key, &req) + key := prm.key + if key == nil { + key = &c.prm.key + } + + err := signature.SignServiceMessage(key, &req) if err != nil { return nil, fmt.Errorf("sign request: %w", err) }