Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: aws-chunked encoding is not supported with the specified x-amz-content-sha256 value for some s3 providers (#4575)

Shawn88b38ff2c002
diff --git a/plugin/storage/s3/s3.go b/plugin/storage/s3/s3.go
index 4dcb835eb..34b55c107 100644
--- a/plugin/storage/s3/s3.go
+++ b/plugin/storage/s3/s3.go
@@ -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,