diff options
author | Rutger Broekhoff | 2023-12-31 00:22:27 +0100 |
---|---|---|
committer | Rutger Broekhoff | 2023-12-31 00:22:27 +0100 |
commit | 9a5376c9023098d0c6bedb27ce672bc6b083d76a (patch) | |
tree | ad8802732cb86c29569d4d9aac8fdf4148a40ee6 | |
parent | 01940ecf7696b33bcecd82f00f5b5eaf81d2b156 (diff) | |
download | gitolfs3-9a5376c9023098d0c6bedb27ce672bc6b083d76a.tar.gz gitolfs3-9a5376c9023098d0c6bedb27ce672bc6b083d76a.zip |
Specify x-amz-content-sha256 as in Scaleway docs
-rw-r--r-- | cmd/git-lfs-server/main.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/git-lfs-server/main.go b/cmd/git-lfs-server/main.go index a1ad5a4..b886557 100644 --- a/cmd/git-lfs-server/main.go +++ b/cmd/git-lfs-server/main.go | |||
@@ -194,6 +194,7 @@ func (h *handler) handleUploadObject(ctx context.Context, repo string, obj parse | |||
194 | presigned, err := h.mc.Presign(ctx, http.MethodPut, h.bucket, fullPath, expiresIn, url.Values{ | 194 | presigned, err := h.mc.Presign(ctx, http.MethodPut, h.bucket, fullPath, expiresIn, url.Values{ |
195 | "x-amz-sdk-checksum-algorithm": {"sha256"}, | 195 | "x-amz-sdk-checksum-algorithm": {"sha256"}, |
196 | "x-amz-checksum-sha256": {sha256AsBase64(obj.fullHash)}, | 196 | "x-amz-checksum-sha256": {sha256AsBase64(obj.fullHash)}, |
197 | "x-amz-content-sha256": {obj.fullHash}, | ||
197 | "Content-Length": {strconv.FormatUint(obj.size, 10)}, | 198 | "Content-Length": {strconv.FormatUint(obj.size, 10)}, |
198 | }) | 199 | }) |
199 | if err != nil { | 200 | if err != nil { |