fix: need to pass content length
This commit is contained in:
parent
9b6a253313
commit
01eda4aa23
|
@ -1679,9 +1679,10 @@ func (s *S5API) pinImportCronJob(cid string, url string, proofUrl string, userId
|
||||||
}(verifier)
|
}(verifier)
|
||||||
|
|
||||||
_, err = client.PutObject(ctx, &s3.PutObjectInput{
|
_, err = client.PutObject(ctx, &s3.PutObjectInput{
|
||||||
Bucket: aws.String(s.config.Config().Core.Storage.S3.BufferBucket),
|
Bucket: aws.String(s.config.Config().Core.Storage.S3.BufferBucket),
|
||||||
Key: aws.String(cid),
|
Key: aws.String(cid),
|
||||||
Body: verifier,
|
Body: verifier,
|
||||||
|
ContentLength: aws.Int64(int64(parsedCid.Size)),
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue