s3: sync bucket info from filer (#3759)

This commit is contained in:
LHHDZ
2022-09-30 03:29:01 +08:00
committed by GitHub
parent 5e9039d728
commit 3de1e19780
11 changed files with 589 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ package weed_server
import (
"context"
"fmt"
//"github.com/seaweedfs/seaweedfs/weed/s3api"
"github.com/seaweedfs/seaweedfs/weed/s3api/s3_constants"
"io"
"net/http"
@@ -374,6 +375,12 @@ func SaveAmzMetaData(r *http.Request, existing map[string][]byte, isReplace bool
}
}
//acp
acp := r.Header.Get(s3_constants.ExtAcpKey)
if len(acp) > 0 {
metadata[s3_constants.ExtAcpKey] = []byte(acp)
}
return
}