[#117] Fix FrostFS interface usage

HTTP Gateway expects io.Reader to work with
payload, however `WithPayload` flag reads whole
payload into header object.

Signed-off-by: Alex Vanin <a.vanin@yadro.com>
This commit is contained in:
Alexey Vanin 2024-06-25 15:31:46 +03:00 committed by Alexey Vanin
parent 27478995b5
commit 0f22ca43c1
5 changed files with 13 additions and 51 deletions

View file

@ -59,9 +59,7 @@ func (h *Handler) receiveFile(ctx context.Context, req request, objectAddress oi
PrmAuth: PrmAuth{
BearerToken: bearerToken(ctx),
},
Address: objectAddress,
WithHeader: true,
WithPayload: true,
Address: objectAddress,
}
rObj, err := h.frostfs.ReadObject(ctx, prm)