mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 12:10:24 +03:00
List buckets response should be nested xml buckets
Additionally check for 'Header' content-type before referencing it, as it may be empty value
This commit is contained in:
@@ -32,7 +32,9 @@ type ObjectListResponse struct {
|
||||
type BucketListResponse struct {
|
||||
XMLName xml.Name `xml:"ListAllMyBucketsResult"`
|
||||
Owner Owner
|
||||
Buckets []Bucket `xml:"Buckets",innerxml`
|
||||
Buckets struct {
|
||||
Bucket []*Bucket
|
||||
} `xml:"Buckets",innerxml` // Buckets are nested
|
||||
}
|
||||
|
||||
type Bucket struct {
|
||||
|
||||
Reference in New Issue
Block a user