From fb8036385ab71c8277a554aff06f937f2e5ab6d6 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 29 May 2021 14:14:30 -0700 Subject: [PATCH] s3: save metadata during put-object fix https://github.com/chrislusf/seaweedfs/issues/2092 --- weed/server/filer_server_handlers_write_autochunk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/server/filer_server_handlers_write_autochunk.go b/weed/server/filer_server_handlers_write_autochunk.go index c43922ea9..fcb92d8ec 100644 --- a/weed/server/filer_server_handlers_write_autochunk.go +++ b/weed/server/filer_server_handlers_write_autochunk.go @@ -218,7 +218,7 @@ func (fs *FilerServer) saveMetaData(ctx context.Context, r *http.Request, fileNa entry.Extended = make(map[string][]byte) } - SaveAmzMetaData(r, entry.Extended, false) + entry.Extended = SaveAmzMetaData(r, entry.Extended, false) for k, v := range r.Header { if len(v) > 0 && (strings.HasPrefix(k, needle.PairNamePrefix) || k == "Cache-Control" || k == "Expires") {