Fix body value

Signed-off-by: Мария Малыгина <m.malygina@yadro.com>
feature/add_multipart_support
Мария Малыгина 2023-07-17 16:28:46 +03:00
parent 00df55340a
commit 88ae8f47a3
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ func (c *Client) Multipart(bucket, key string, objPartSize int, payload goja.Arr
result, err := uploader.Upload(context.TODO(), &s3.PutObjectInput{
Bucket: aws.String(bucket),
Key: aws.String(key),
Body: payload.Bytes(),
Body: bytes.NewReader(payload.Bytes()),
})
if err != nil {
stats.Report(c.vu, objPutFails, 1)