fix(s3): nil pointer when uploading files to SeaweedFS (close #3265)

This commit is contained in:
Aaron Liu
2026-02-05 19:25:43 +08:00
parent 57239e81af
commit 6322a9e951

View File

@@ -420,9 +420,14 @@ func (handler *Driver) Meta(ctx context.Context, path string) (*MetaData, error)
return nil, err
}
etag := ""
if res.ETag != nil {
etag = *res.ETag
}
return &MetaData{
Size: *res.ContentLength,
Etag: *res.ETag,
Etag: etag,
}, nil
}