Browse Source

fix if nil map in entry.

pull/1612/head
ruitao.liu 4 years ago
parent
commit
dbba8cb57e
  1. 3
      weed/s3api/s3api_bucket_handlers.go

3
weed/s3api/s3api_bucket_handlers.go

@ -96,6 +96,9 @@ func (s3a *S3ApiServer) PutBucketHandler(w http.ResponseWriter, r *http.Request)
fn := func(entry *filer_pb.Entry) {
if identityId := r.Header.Get(xhttp.AmzIdentityId); identityId != "" {
if entry.Extended == nil {
entry.Extended = make(map[string][]byte)
}
entry.Extended[xhttp.AmzIdentityId] = []byte(identityId)
}
}

Loading…
Cancel
Save