[#988] objectSvc: Fix SetMarshalData for PutSingle

After api-go update it is required to pass marshal data
to `SetMarshalData`.

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2024-02-15 17:13:29 +03:00
parent 6bafdab004
commit 2680192ba0

View file

@ -122,7 +122,7 @@ func (s *SignService) Head(ctx context.Context, req *object.HeadRequest) (*objec
}
func (s *SignService) PutSingle(ctx context.Context, req *object.PutSingleRequest) (*object.PutSingleResponse, error) {
req.GetBody().SetMarshalData(nil)
req.GetBody().SetMarshalData(req.GetBody().StableMarshal(nil))
if err := s.sigSvc.VerifyRequest(req); err != nil {
resp := new(object.PutSingleResponse)
return resp, s.sigSvc.SignResponse(resp, err)