mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 16:17:58 +08:00
fix if nil map in entry.
This commit is contained in:
@@ -96,6 +96,9 @@ func (s3a *S3ApiServer) PutBucketHandler(w http.ResponseWriter, r *http.Request)
|
|||||||
|
|
||||||
fn := func(entry *filer_pb.Entry) {
|
fn := func(entry *filer_pb.Entry) {
|
||||||
if identityId := r.Header.Get(xhttp.AmzIdentityId); identityId != "" {
|
if identityId := r.Header.Get(xhttp.AmzIdentityId); identityId != "" {
|
||||||
|
if entry.Extended == nil {
|
||||||
|
entry.Extended = make(map[string][]byte)
|
||||||
|
}
|
||||||
entry.Extended[xhttp.AmzIdentityId] = []byte(identityId)
|
entry.Extended[xhttp.AmzIdentityId] = []byte(identityId)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user