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:
Harshavardhana
2015-01-23 01:55:01 -08:00
parent d482c39341
commit 132e661136
2 changed files with 18 additions and 13 deletions
+3 -1
View File
@@ -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 {