mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-09-04 07:07:18 +00:00
fix(replication/s3sink): nil-guard entry.Attributes when reading Mime
This commit is contained in:
@@ -209,7 +209,7 @@ func (s3sink *S3Sink) CreateEntry(key string, entry *filer_pb.Entry, signatures
|
||||
if tags != "" {
|
||||
uploadInput.Tagging = aws.String(tags)
|
||||
}
|
||||
if entry.Attributes.Mime != "" {
|
||||
if entry.Attributes != nil && entry.Attributes.Mime != "" {
|
||||
uploadInput.ContentType = aws.String(entry.Attributes.Mime)
|
||||
}
|
||||
if len(entry.Attributes.Md5) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user