[#306] Use s3 as chain id prefix to be consistent
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>pull/310/head
parent
2981a47e99
commit
c4c199defe
|
@ -596,7 +596,7 @@ func (h *handler) PutBucketPolicyHandler(w http.ResponseWriter, r *http.Request)
|
||||||
}
|
}
|
||||||
|
|
||||||
func getBucketChainID(bktInfo *data.BucketInfo) chain.ID {
|
func getBucketChainID(bktInfo *data.BucketInfo) chain.ID {
|
||||||
return chain.ID("bkt" + string(bktInfo.CID[:]))
|
return chain.ID(string(chain.S3) + ":bkt" + string(bktInfo.CID[:]))
|
||||||
}
|
}
|
||||||
|
|
||||||
func parseACLHeaders(header http.Header, key *keys.PublicKey) (*AccessControlPolicy, error) {
|
func parseACLHeaders(header http.Header, key *keys.PublicKey) (*AccessControlPolicy, error) {
|
||||||
|
|
Loading…
Reference in New Issue