From 9a5376c9023098d0c6bedb27ce672bc6b083d76a Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Sun, 31 Dec 2023 00:22:27 +0100 Subject: Specify x-amz-content-sha256 as in Scaleway docs --- cmd/git-lfs-server/main.go | 1 + 1 file changed, 1 insertion(+) 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 presigned, err := h.mc.Presign(ctx, http.MethodPut, h.bucket, fullPath, expiresIn, url.Values{ "x-amz-sdk-checksum-algorithm": {"sha256"}, "x-amz-checksum-sha256": {sha256AsBase64(obj.fullHash)}, + "x-amz-content-sha256": {obj.fullHash}, "Content-Length": {strconv.FormatUint(obj.size, 10)}, }) if err != nil { -- cgit v1.2.3