diff --git a/weed/server/filer_server_handlers_write_autochunk.go b/weed/server/filer_server_handlers_write_autochunk.go index 7064cac02..4a6219c00 100644 --- a/weed/server/filer_server_handlers_write_autochunk.go +++ b/weed/server/filer_server_handlers_write_autochunk.go @@ -381,6 +381,10 @@ func SaveAmzMetaData(r *http.Request, existing map[string][]byte, isReplace bool metadata[s3_constants.ExtAmzOwnerKey] = []byte(acpOwner) } + if ce := r.Header.Get("Content-Encoding"); ce != "" { + metadata["Content-Encoding"] = []byte(ce) + } + //acp-grants acpGrants := r.Header.Get(s3_constants.ExtAmzAclKey) if len(acpOwner) > 0 {