Browse Source

fix content-encoding

Signed-off-by: changlin.shi <changlin.shi@ly.com>
pull/4090/head
changlin.shi 2 years ago
parent
commit
f0c53bfa36
  1. 4
      weed/server/filer_server_handlers_write_autochunk.go

4
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 {

Loading…
Cancel
Save