mirror of
https://github.com/usememos/memos.git
synced 2025-10-26 14:26:20 +08:00
fix: aws-chunked encoding is not supported with the specified x-amz-content-sha256 value for some s3 providers (#4575)
Co-authored-by: Shawn L. <shawn@sola.sh>
This commit is contained in:
parent
09c50a8419
commit
88b38ff2c0
1 changed files with 2 additions and 0 deletions
|
|
@ -32,6 +32,8 @@ func NewClient(ctx context.Context, s3Config *storepb.StorageS3Config) (*Client,
|
|||
client := s3.NewFromConfig(cfg, func(o *s3.Options) {
|
||||
o.BaseEndpoint = aws.String(s3Config.Endpoint)
|
||||
o.UsePathStyle = s3Config.UsePathStyle
|
||||
o.RequestChecksumCalculation = aws.RequestChecksumCalculationWhenRequired
|
||||
o.ResponseChecksumValidation = aws.ResponseChecksumValidationWhenRequired
|
||||
})
|
||||
return &Client{
|
||||
Client: client,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue